pulsesink: share the PA context between all clients with the same name
[platform/upstream/gst-plugins-good.git] / sys / sunaudio / gstsunaudiomixer.h
1 /*
2  * GStreamer - SunAudio mixer
3  * Copyright (C) 2005,2006 Sun Microsystems, Inc.,
4  *               Brian Cameron <brian.cameron@sun.com>
5  *
6  * This library is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU Library General Public
8  * License as published by the Free Software Foundation; either
9  * version 2 of the License, or (at your option) any later version.
10  *
11  * This library is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14  * Library General Public License for more details.
15  *
16  * You should have received a copy of the GNU Library General Public
17  * License along with this library; if not, write to the Free
18  * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
19  */
20
21 #ifndef __GST_SUNAUDIO_MIXER_H__
22 #define __GST_SUNAUDIO_MIXER_H__
23
24 #include "gstsunaudiomixerctrl.h"
25
26 G_BEGIN_DECLS
27
28 #define GST_SUNAUDIO_MIXER(obj)            (G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_SUNAUDIO_MIXER,GstSunAudioMixer))
29 #define GST_SUNAUDIO_MIXER_CLASS(klass)    (G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_SUNAUDIO_MIXER,GstSunAudioMixerClass))
30 #define GST_IS_SUNAUDIO_MIXER(obj)         (G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_SUNAUDIO_MIXER))
31 #define GST_IS_SUNAUDIO_MIXER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_SUNAUDIO_MIXER))
32 #define GST_TYPE_SUNAUDIO_MIXER            (gst_sunaudiomixer_get_type())
33
34 typedef struct _GstSunAudioMixer GstSunAudioMixer;
35 typedef struct _GstSunAudioMixerClass GstSunAudioMixerClass;
36
37 struct _GstSunAudioMixer {
38   GstElement            parent;
39
40   GstSunAudioMixerCtrl  *mixer;
41 };
42
43 struct _GstSunAudioMixerClass {
44   GstElementClass       parent;
45 };
46
47 GType           gst_sunaudiomixer_get_type              (void);
48
49 G_END_DECLS
50
51 #endif /* __GST_SUNAUDIO_MIXER_H__ */