Merge branch 'master' into 0.11
[platform/upstream/gst-plugins-good.git] / sys / oss / gstossmixertrack.h
1 /* GStreamer OSS Mixer implementation
2  * Copyright (C) 2003 Ronald Bultje <rbultje@ronald.bitfreak.net>
3  *
4  * gstossmixertrack.h: OSS mixer tracks
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
18  * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
19  * Boston, MA 02111-1307, USA.
20  */
21
22 #ifndef __GST_OSS_MIXER_TRACK_H__
23 #define __GST_OSS_MIXER_TRACK_H__
24
25 #include <gst/gst.h>
26 #include <gst/interfaces/mixer.h>
27
28 #include "gstosshelper.h"
29
30 G_BEGIN_DECLS
31
32 #define GST_TYPE_OSSMIXER_TRACK \
33   (gst_ossmixer_track_get_type ())
34 #define GST_OSSMIXER_TRACK(obj) \
35   (G_TYPE_CHECK_INSTANCE_CAST ((obj), GST_TYPE_OSSMIXER_TRACK, \
36                                GstOssMixerTrack))
37 #define GST_OSSMIXER_TRACK_CLASS(klass) \
38   (G_TYPE_CHECK_CLASS_CAST ((klass), GST_TYPE_OSSMIXER_TRACK, \
39                             GstOssMixerTrackClass))
40 #define GST_IS_OSSMIXER_TRACK(obj) \
41   (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GST_TYPE_OSSMIXER_TRACK))
42 #define GST_IS_OSSMIXER_TRACK_CLASS(klass) \
43   (G_TYPE_CHECK_CLASS_TYPE ((klass), GST_TYPE_OSSMIXER_TRACK))
44
45 typedef struct _GstOssMixerTrack {
46   GstMixerTrack parent;
47
48   gint          lvol, rvol;
49   gint          track_num;
50 } GstOssMixerTrack;
51
52 typedef struct _GstOssMixerTrackClass {
53   GstMixerTrackClass parent;
54 } GstOssMixerTrackClass;
55
56 GType           gst_ossmixer_track_get_type     (void);
57 GstMixerTrack*  gst_ossmixer_track_new          (gint mixer_fd,
58     gint track_num, gint max_chans, gint flags);
59
60 G_END_DECLS
61
62 #endif /* __GST_OSS_MIXER_TRACK_H__ */