• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * GStreamer
3  * Copyright (C) 2017 Collabora Inc.
4  * Copyright (C) 2021 Igalia S.L.
5  *   Author: Philippe Normand <philn@igalia.com>
6  *
7  * This library is free software; you can redistribute it and/or
8  * modify it under the terms of the GNU Library General Public
9  * License as published by the Free Software Foundation; either
10  * version 2 of the License, or (at your option) any later version.
11  *
12  * This library is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
15  * Library General Public License for more details.
16  *
17  * You should have received a copy of the GNU Library General Public
18  * License along with this library; if not, write to the
19  * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
20  * Boston, MA 02110-1301, USA.
21  */
22 
23 #ifndef _GST_FAKE_AUDIO_SINK_H_
24 #define _GST_FAKE_AUDIO_SINK_H_
25 
26 #include <gst/gst.h>
27 
28 #define GST_TYPE_FAKE_AUDIO_SINK \
29   (gst_fake_audio_sink_get_type())
30 #define GST_FAKE_AUDIO_SINK(obj) \
31   (G_TYPE_CHECK_INSTANCE_CAST((obj), GST_TYPE_FAKE_AUDIO_SINK, GstFakeAudioSink))
32 #define GST_FAKE_AUDIO_SINK_CLASS(klass) \
33   (G_TYPE_CHECK_CLASS_CAST((klass), GST_TYPE_FAKE_AUDIO_SINK, GstFakeAudioSinkClass))
34 #define GST_FAKE_AUDIO_SINK_GET_CLASS(obj) \
35   (G_TYPE_INSTANCE_GET_CLASS((obj), GST_TYPE_FAKE_AUDIO_SINK, GstFakeAudioSinkClass))
36 #define GST_IS_FAKE_AUDIO_SINK(obj) \
37   (G_TYPE_CHECK_INSTANCE_TYPE((obj), GST_TYPE_FAKE_AUDIO_SINK))
38 #define GST_IS_FAKE_AUDIO_SINK_CLASS(klass) \
39   (G_TYPE_CHECK_CLASS_TYPE((klass), GST_TYPE_FAKE_AUDIO_SINK))
40 
41 G_BEGIN_DECLS
42 
43 typedef struct _GstFakeAudioSink GstFakeAudioSink;
44 typedef struct _GstFakeAudioSinkClass GstFakeAudioSinkClass;
45 
46 struct _GstFakeAudioSink
47 {
48     GstBin parent;
49     GstElement *child;
50     gdouble volume;
51     gboolean mute;
52 };
53 
54 struct _GstFakeAudioSinkClass
55 {
56     GstBinClass parent;
57 };
58 
59 GType gst_fake_audio_sink_get_type (void);
60 
61 G_END_DECLS
62 
63 #endif
64