2 * GStreamer SunAudio mixer track implementation
3 * Copyright (C) 2005,2006,2009 Sun Microsystems, Inc.,
4 * Brian Cameron <brian.cameron@sun.com>
5 * Copyright (C) 2009 Sun Microsystems, Inc.,
6 * Garrett D'Amore <garrett.damore@sun.com>
8 * gstsunaudiomixertrack.h: SunAudio mixer tracks
10 * This library is free software; you can redistribute it and/or
11 * modify it under the terms of the GNU Library General Public
12 * License as published by the Free Software Foundation; either
13 * version 2 of the License, or (at your option) any later version.
15 * This library is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18 * Library General Public License for more details.
20 * You should have received a copy of the GNU Library General Public
21 * License along with this library; if not, write to the
22 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
23 * Boston, MA 02111-1307, USA.
26 #ifndef __GST_SUNAUDIO_MIXER_TRACK_H__
27 #define __GST_SUNAUDIO_MIXER_TRACK_H__
30 #include <gst/interfaces/mixer.h>
36 GST_SUNAUDIO_TRACK_OUTPUT = 0,
37 GST_SUNAUDIO_TRACK_RECORD,
38 GST_SUNAUDIO_TRACK_MONITOR,
39 GST_SUNAUDIO_TRACK_SPEAKER,
40 GST_SUNAUDIO_TRACK_HP,
41 GST_SUNAUDIO_TRACK_LINEOUT,
42 GST_SUNAUDIO_TRACK_SPDIFOUT,
43 GST_SUNAUDIO_TRACK_AUX1OUT,
44 GST_SUNAUDIO_TRACK_AUX2OUT,
45 GST_SUNAUDIO_TRACK_RECSRC
46 } GstSunAudioTrackType;
48 #define GST_TYPE_SUNAUDIO_MIXER_TRACK \
49 (gst_sunaudiomixer_track_get_type ())
50 #define GST_SUNAUDIO_MIXER_TRACK(obj) \
51 (G_TYPE_CHECK_INSTANCE_CAST ((obj), GST_TYPE_SUNAUDIO_MIXER_TRACK, \
52 GstSunAudioMixerTrack))
53 #define GST_SUNAUDIO_MIXER_TRACK_CLASS(klass) \
54 (G_TYPE_CHECK_CLASS_CAST ((klass), GST_TYPE_SUNAUDIO_MIXER_TRACK, \
55 GstSunAudioMixerTrackClass))
56 #define GST_IS_SUNAUDIO_MIXER_TRACK(obj) \
57 (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GST_TYPE_SUNAUDIO_MIXER_TRACK))
58 #define GST_IS_SUNAUDIO_MIXER_TRACK_CLASS(klass) \
59 (G_TYPE_CHECK_CLASS_TYPE ((klass), GST_TYPE_SUNAUDIO_MIXER_TRACK))
61 typedef struct _GstSunAudioMixerTrack {
66 GstSunAudioTrackType track_num;
67 } GstSunAudioMixerTrack;
69 typedef struct _GstSunAudioMixerTrackClass {
70 GstMixerTrackClass parent;
71 } GstSunAudioMixerTrackClass;
73 GType gst_sunaudiomixer_track_get_type (void);
74 GstMixerTrack* gst_sunaudiomixer_track_new (GstSunAudioTrackType track_num);
78 #endif /* __GST_SUNAUDIO_MIXER_TRACK_H__ */