summaryrefslogtreecommitdiffstats
path: root/gst-libs/gst/mixer/mixer.h
diff options
context:
space:
mode:
authorRonald S. Bultje <rbultje@ronald.bitfreak.net>2003-10-10 12:24:20 +0000
committerRonald S. Bultje <rbultje@ronald.bitfreak.net>2003-10-10 12:24:20 +0000
commit39b91cdb495b9f9b326e79a10f64753a097c203c (patch)
treed73cde761fa1ad9856cb12ddd724082c0999f77d /gst-libs/gst/mixer/mixer.h
parent715b0097be24824bef899de3cb35d1c8808946dc (diff)
downloadgst-plugins-bad-39b91cdb495b9f9b326e79a10f64753a097c203c.tar.gz
gst-plugins-bad-39b91cdb495b9f9b326e79a10f64753a097c203c.tar.bz2
gst-plugins-bad-39b91cdb495b9f9b326e79a10f64753a097c203c.zip
Make GstMixerTrack a GObject. I also want to make it emit several signals, starting work is in here but it's not full...
Original commit message from CVS: Make GstMixerTrack a GObject. I also want to make it emit several signals, starting work is in here but it's not fully implemented yet. for OSS, this will cause issues, but for ALSA, this is all automated.
Diffstat (limited to 'gst-libs/gst/mixer/mixer.h')
-rw-r--r--gst-libs/gst/mixer/mixer.h29
1 files changed, 1 insertions, 28 deletions
diff --git a/gst-libs/gst/mixer/mixer.h b/gst-libs/gst/mixer/mixer.h
index 5639758e..6ee49e3a 100644
--- a/gst-libs/gst/mixer/mixer.h
+++ b/gst-libs/gst/mixer/mixer.h
@@ -23,6 +23,7 @@
#define __GST_MIXER_H__
#include <gst/gst.h>
+#include <gst/mixer/mixertrack.h>
G_BEGIN_DECLS
@@ -39,34 +40,6 @@ G_BEGIN_DECLS
#define GST_MIXER_GET_CLASS(inst) \
(G_TYPE_INSTANCE_GET_INTERFACE ((inst), GST_TYPE_MIXER, GstMixerClass))
-/* In this interface, a `track' is a unit of recording or playback, pretty much
- * equivalent to what comes in or goes out through a GstPad. Each track can have
- * one or more `channels', which are logical parts of the track. A `stereo
- * track', then, would be one stream with two channels, while a `mono track'
- * would be a stream with a single channel. More complex examples are possible
- * as well ; for example, professional audio hardware might handle audio tracks
- * with 8 or 16 channels each.
- *
- * All these are audio terms. I don't know exactly what this would translate to
- * for video, but a track might be an entire video stream, and a channel might
- * be the information for one of the colors in the stream.
- */
-
-#define GST_MIXER_TRACK_INPUT (1<<0)
-#define GST_MIXER_TRACK_OUTPUT (1<<1)
-#define GST_MIXER_TRACK_MUTE (1<<2)
-#define GST_MIXER_TRACK_RECORD (1<<3)
-
-typedef struct _GstMixerTrack {
- gchar *label;
- gint num_channels,
- flags,
- min_volume, max_volume;
-} GstMixerTrack;
-
-#define GST_MIXER_TRACK_HAS_FLAG(track, flag) \
- ((track)->flags & flag)
-
typedef struct _GstMixer GstMixer;
typedef struct _GstMixerClass {