2 * GStreamer - SunAudio sink
3 * Copyright (C) 2004 David A. Schleef <ds@schleef.org>
4 * Copyright (C) 2005,2006 Sun Microsystems, Inc.,
5 * Brian Cameron <brian.cameron@sun.com>
6 * Copyright (C) 2006 Jan Schmidt <thaytan@mad.scientist.com>
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_SINK_H__
27 #define __GST_SUNAUDIO_SINK_H__
29 #include <sys/audioio.h>
31 #include <gst/audio/gstaudiosink.h>
35 #define GST_TYPE_SUNAUDIO_SINK (gst_sunaudiosink_get_type())
36 #define GST_SUNAUDIO_SINK(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_SUNAUDIO_SINK,GstSunAudioSink))
37 #define GST_SUNAUDIO_SINK_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_SUNAUDIO_SINK,GstSunAudioSinkClass))
38 #define GST_IS_SUNAUDIO_SINK(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_SUNAUDIO_SINK))
39 #define GST_IS_SUNAUDIO_SINK_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_SUNAUDIO_SINK))
41 typedef struct _GstSunAudioSink GstSunAudioSink;
42 typedef struct _GstSunAudioSinkClass GstSunAudioSinkClass;
44 struct _GstSunAudioSink {
53 /* Number of segments the ringbuffer is configured for */
55 guint segtotal_samples;
57 /* Number of segments written to the device */
59 /* Number of samples written to the device */
61 guint bytes_per_sample;
63 /* mutex and gcond used to control the write method */
69 struct _GstSunAudioSinkClass {
70 GstAudioSinkClass parent_class;
73 GType gst_sunaudiosink_get_type(void);
77 #endif /* __GST_SUNAUDIO_SINK_H__ */