Debian Codegraph @

gstreamer/src/audiofilter.hg

raw
1 /* gstreamermm - a C++ wrapper for gstreamer
2 *
3 * Copyright 2008-2016 The gstreamermm Development Team
4 *
5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Lesser General Public
7 * License as published by the Free Software Foundation; either
8 * version 2.1 of the License, or (at your option) any later version.
9 *
10 * This library is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Lesser General Public License for more details.
14 *
15 * You should have received a copy of the GNU Lesser General Public
16 * License along with this library; if not, write to the Free
17 * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
18 */
19
20 #include <gstreamermm/basetransform.h>
21 #include <gstreamermm/audioinfo.h>
22
23 _DEFS(gstreamermm,gst)
24
25 namespace Gst
26 {
27
28 /** A base class for simple audio filters.
29 * Gst::AudioFilter is a Gst::BaseTransform-derived base class for simple
30 * audio filters, ie. those that output the same format that they get as input.
31 *
32 * Gst::AudioFilter will parse the input format for you (with error
33 * checking) before calling your setup function. Also, elements deriving from
34 * Gst::AudioFilter may use gst_audio_filter_class_add_pad_templates() from
35 * their base_init function to easily configure the set of caps/formats that
36 * the element is able to handle.
37 *
38 * Derived classes should override the Gst::AudioFilter::setup_vfunc() and
39 * Gst::BaseTransform::transform_ip_vfunc() and/or
40 * Gst::BaseTransform::transform_vfunc() virtual functions.
41 *
42 * Last reviewed on 2016-04-23 (1.8.0).
43 *
44 * @ingroup GstBaseClasses
45 */
46 class AudioFilter : public Gst::BaseTransform
47 {
48 _CLASS_GOBJECT(AudioFilter, GstAudioFilter, GST_AUDIO_FILTER, Gst::BaseTransform, GstBaseTransform)
49
50 public:
51 /** Virtual function, called whenever the format changes.
52 */
53 _WRAP_VFUNC(bool setup(const Gst::AudioInfo& info), "setup")
54 };
55
56 } // namespace Gst