summaryrefslogtreecommitdiffstats
path: root/sys/sunaudio/gstsunmixer.h
diff options
context:
space:
mode:
authorBalamurali Viswanathan <balamurali.viswanathan@wipro.com>2004-08-18 04:52:41 +0000
committerDavid Schleef <ds@schleef.org>2004-08-18 04:52:41 +0000
commitf1ffa33d9ec0155ab660dc1a5f6ed40ce3f73abf (patch)
treee83edfbf7898807c322b83294b91a0cc863fca73 /sys/sunaudio/gstsunmixer.h
parent98f3784bf6adf36778db5ce44e9dd92474281ea8 (diff)
downloadgst-plugins-bad-f1ffa33d9ec0155ab660dc1a5f6ed40ce3f73abf.tar.gz
gst-plugins-bad-f1ffa33d9ec0155ab660dc1a5f6ed40ce3f73abf.tar.bz2
gst-plugins-bad-f1ffa33d9ec0155ab660dc1a5f6ed40ce3f73abf.zip
sys/sunaudio/: Fix caps to handle full range of rates and channels. Make debugging less obnoxious.
Original commit message from CVS: * sys/sunaudio/Makefile.am: * sys/sunaudio/gstsunaudio.c: Fix caps to handle full range of rates and channels. Make debugging less obnoxious. Patch from Balamurali Viswanathan implementing a mixer for Sun audio. (bug #144091): * sys/sunaudio/gstsunelement.c: * sys/sunaudio/gstsunelement.h: * sys/sunaudio/gstsunmixer.c: * sys/sunaudio/gstsunmixer.h:
Diffstat (limited to 'sys/sunaudio/gstsunmixer.h')
-rw-r--r--sys/sunaudio/gstsunmixer.h43
1 files changed, 43 insertions, 0 deletions
diff --git a/sys/sunaudio/gstsunmixer.h b/sys/sunaudio/gstsunmixer.h
new file mode 100644
index 00000000..dd3a7f7e
--- /dev/null
+++ b/sys/sunaudio/gstsunmixer.h
@@ -0,0 +1,43 @@
+#ifndef __GST_SUNAUDIO_MIXER_H
+#define __GST_SUNAUDIO_MIXER_H
+
+#include <gst/gst.h>
+#include <gst/mixer/mixer.h>
+#include "gstsunelement.h"
+
+G_BEGIN_DECLS
+
+#define GST_TYPE_SUNAUDIOMIXER_TRACK \
+ (gst_sunaudiomixer_track_get_type ())
+#define GST_SUNAUDIOMIXER_TRACK(obj) \
+ (G_TYPE_CHECK_INSTANCE_CAST ((obj), GST_TYPE_SUNAUDIOMIXER_TRACK, \
+ GstSunAudioMixerTrack))
+#define GST_SUNAUDIOMIXER_TRACK_CLASS(klass) \
+ (G_TYPE_CHECK_CLASS_CAST ((klass), GST_TYPE_SUNAUDIOMIXER_TRACK, \
+ GstSunAudioMixerTrackClass))
+#define GST_IS_SUNAUDIOMIXER_TRACK(obj) \
+ (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GST_TYPE_SUNAUDIOMIXER_TRACK))
+#define GST_IS_SUNAUDIOMIXER_TRACK_CLASS(klass) \
+ (G_TYPE_CHECK_CLASS_TYPE ((klass), GST_TYPE_SUNAUDIOMIXER_TRACK))
+
+typedef struct _GstSunAudioMixerTrack {
+ GstMixerTrack parent;
+
+ gint lvol, rvol;
+ gint track_num;
+} GstSunAudioMixerTrack;
+
+typedef struct _GstSunAudioMixerTrackClass {
+ GstMixerTrackClass parent;
+} GstSunAudioMixerTrackClass;
+
+GType gst_sunaudiomixer_track_get_type (void);
+
+void gst_sunaudiomixer_interface_init (GstMixerClass *klass);
+void gst_sunaudio_interface_init (GstImplementsInterfaceClass *klass);
+void gst_sunaudiomixer_build_list (GstSunAudioElement *sunaudio);
+void gst_sunaudiomixer_free_list (GstSunAudioElement *sunaudio);
+
+G_END_DECLS
+
+#endif