Commit c3d4f38a authored by Wim Taymans's avatar Wim Taymans

More work on subclassing the sinks from the basesink.

Original commit message from CVS:
More work on subclassing the sinks from the basesink.
First attempt at generic audiosink base objects.
Make oss DMA audiosink.
parent 5e601af2
2005-03-04 Wim Taymans <wim@fluendo.com>
* examples/seeking/seek.c:
* ext/theora/theoraenc.c: (theora_enc_sink_event),
(theora_enc_chain):
* ext/vorbis/vorbisenc.c: (gst_vorbisenc_sink_event),
(gst_vorbisenc_chain):
* gst-libs/gst/audio/Makefile.am:
* gst-libs/gst/audio/gstbaseaudiosink.c:
(gst_baseaudiosink_base_init), (gst_baseaudiosink_class_init),
(gst_baseaudiosink_init), (gst_baseaudiosink_set_property),
(gst_baseaudiosink_get_property), (gst_baseaudiosink_setcaps),
(gst_baseaudiosink_get_times), (gst_baseaudiosink_event),
(gst_baseaudiosink_preroll), (gst_baseaudiosink_render),
(gst_baseaudiosink_create_ringbuffer),
(gst_baseaudiosink_callback), (gst_baseaudiosink_change_state):
* gst-libs/gst/audio/gstbaseaudiosink.h:
* gst-libs/gst/audio/gstringbuffer.c: (gst_ringbuffer_get_type),
(gst_ringbuffer_class_init), (gst_ringbuffer_init),
(gst_ringbuffer_dispose), (gst_ringbuffer_finalize),
(gst_ringbuffer_set_callback), (gst_ringbuffer_acquire),
(gst_ringbuffer_release), (gst_ringbuffer_play),
(gst_ringbuffer_stop), (gst_ringbuffer_callback),
(gst_ringbuffer_write):
* gst-libs/gst/audio/gstringbuffer.h:
* gst-libs/gst/video/Makefile.am:
* gst-libs/gst/video/gstvideosink.c: (gst_videosink_init),
(gst_videosink_class_init), (gst_videosink_get_type):
* gst-libs/gst/video/videosink.h:
* sys/oss/Makefile.am:
* sys/oss/gstossdmabuffer.c: (gst_ossdmabuffer_get_type),
(gst_ossdmabuffer_class_init), (gst_ossdmabuffer_init),
(gst_ossdmabuffer_dispose), (gst_ossdmabuffer_finalize),
(gst_ossdmabuffer_func), (gst_ossdmabuffer_acquire),
(gst_ossdmabuffer_release), (gst_ossdmabuffer_play),
(gst_ossdmabuffer_stop):
* sys/oss/gstossdmabuffer.h:
* sys/oss/gstosselement.c: (gst_osselement_class_init),
(gst_osselement_parse_caps), (gst_osselement_sync_parms),
(gst_osselement_open_audio):
* sys/oss/gstosselement.h:
* sys/oss/gstosssink.c: (gst_osssink_get_type),
(gst_osssink_gettemplate), (gst_osssink_class_init),
(gst_osssink_init), (gst_osssink_getcaps), (gst_osssink_get_delay),
(gst_osssink_get_time), (gst_osssink_create_ringbuffer),
(gst_osssink_render), (gst_osssink_convert),
(gst_osssink_sink_query), (gst_osssink_query),
(gst_osssink_set_property), (gst_osssink_get_property),
(gst_osssink_change_state):
* sys/oss/gstosssink.h:
* sys/xvimage/xvimagesink.c: (gst_xvimagesink_getcaps),
(gst_xvimagesink_setcaps), (gst_xvimagesink_change_state),
(gst_xvimagesink_get_times), (gst_xvimagesink_show_frame),
(gst_xvimagesink_chain), (gst_xvimagesink_buffer_alloc),
(gst_xvimagesink_init), (gst_xvimagesink_get_template),
(gst_xvimagesink_class_init):
* sys/xvimage/xvimagesink.h:
More work on subclassing the sinks from the basesink.
First attempt at generic audiosink base objects.
Make oss DMA audiosink.
2005-02-20 Ronald S. Bultje <rbultje@ronald.bitfreak.net>
* gst/avi/gstavidemux.c: (gst_avi_demux_index_next),
......
......@@ -27,7 +27,7 @@ static gulong changed_id;
/* number of milliseconds to play for after a seek */
#define SCRUB_TIME 250
#undef SCRUB
#define SCRUB
#define THREAD
#define PAD_SEEK
......
......@@ -4,15 +4,17 @@ libgstossaudio_la_SOURCES = gstossaudio.c \
gstosselement.c \
gstossmixer.c \
gstosssink.c \
gstossdmabuffer.c \
gstosssrc.c
libgstossaudio_la_CFLAGS = $(GST_CFLAGS)
libgstossaudio_la_LIBADD = $(top_builddir)/gst-libs/gst/libgstinterfaces-@GST_MAJORMINOR@.la
libgstossaudio_la_LDFLAGS = $(GST_PLUGIN_LDFLAGS)
libgstossaudio_la_LDFLAGS = $(GST_PLUGIN_LDFLAGS) ../../../gstreamer2/gst/base/libgstbase.la
noinst_HEADERS = gstosssink.h \
gstosssrc.h \
gstosselement.h\
noinst_HEADERS = gstosssink.h \
gstosssrc.h \
gstosselement.h \
gstossdmabuffer.h \
gstossmixer.h
noinst_PROGRAMS = oss_probe
......
/* GStreamer
* Copyright (C) 1999,2000 Erik Walthinsen <omega@cse.ogi.edu>
* 2005 Wim Taymans <wim@fluendo.com>
*
* gstossdmabuffer.c:
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Library General Public License for more details.
*
* You should have received a copy of the GNU Library General Public
* License along with this library; if not, write to the
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
* Boston, MA 02111-1307, USA.
*/
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <fcntl.h>
#include <string.h>
#include <sys/types.h>
#include <sys/mman.h>
#include <sys/soundcard.h>
#include <sys/time.h>
#include <sys/ioctl.h>
#include <pthread.h>
#include "gstossdmabuffer.h"
static void gst_ossdmabuffer_class_init (GstOssDMABufferClass * klass);
static void gst_ossdmabuffer_init (GstOssDMABuffer * ossdmabuffer);
static void gst_ossdmabuffer_dispose (GObject * object);
static void gst_ossdmabuffer_finalize (GObject * object);
static gboolean gst_ossdmabuffer_acquire (GstRingBuffer * buf,
GstRingBufferSpec * spec);
static gboolean gst_ossdmabuffer_release (GstRingBuffer * buf);
static gboolean gst_ossdmabuffer_play (GstRingBuffer * buf);
static gboolean gst_ossdmabuffer_stop (GstRingBuffer * buf);
static GstRingBufferClass *parent_class = NULL;
GType
gst_ossdmabuffer_get_type (void)
{
static GType ossdmabuffer_type = 0;
if (!ossdmabuffer_type) {
static const GTypeInfo ossdmabuffer_info = {
sizeof (GstOssDMABufferClass),
NULL,
NULL,
(GClassInitFunc) gst_ossdmabuffer_class_init,
NULL,
NULL,
sizeof (GstOssDMABuffer),
0,
(GInstanceInitFunc) gst_ossdmabuffer_init,
NULL
};
ossdmabuffer_type =
g_type_register_static (GST_TYPE_RINGBUFFER, "GstOssDMABuffer",
&ossdmabuffer_info, 0);
}
return ossdmabuffer_type;
}
static void
gst_ossdmabuffer_class_init (GstOssDMABufferClass * klass)
{
GObjectClass *gobject_class;
GstObjectClass *gstobject_class;
GstRingBufferClass *gstringbuffer_class;
gobject_class = (GObjectClass *) klass;
gstobject_class = (GstObjectClass *) klass;
gstringbuffer_class = (GstRingBufferClass *) klass;
parent_class = g_type_class_ref (GST_TYPE_RINGBUFFER);
gobject_class->dispose = GST_DEBUG_FUNCPTR (gst_ossdmabuffer_dispose);
gobject_class->finalize = GST_DEBUG_FUNCPTR (gst_ossdmabuffer_finalize);
gstringbuffer_class->acquire = gst_ossdmabuffer_acquire;
gstringbuffer_class->release = gst_ossdmabuffer_release;
gstringbuffer_class->play = gst_ossdmabuffer_play;
gstringbuffer_class->stop = gst_ossdmabuffer_stop;
}
static void
gst_ossdmabuffer_init (GstOssDMABuffer * ossdmabuffer)
{
ossdmabuffer->cond = g_cond_new ();
ossdmabuffer->element = g_object_new (GST_TYPE_OSSELEMENT, NULL);
}
static void
gst_ossdmabuffer_dispose (GObject * object)
{
G_OBJECT_CLASS (parent_class)->dispose (object);
}
static void
gst_ossdmabuffer_finalize (GObject * object)
{
GstOssDMABuffer *obuf = (GstOssDMABuffer *) object;
g_cond_free (obuf->cond);
G_OBJECT_CLASS (parent_class)->finalize (object);
}
static void
gst_ossdmabuffer_func (GstRingBuffer * buf)
{
fd_set writeset;
struct count_info count;
GstOssDMABuffer *obuf = (GstOssDMABuffer *) buf;
GST_LOCK (buf);
while (obuf->running) {
if (buf->state == GST_RINGBUFFER_STATE_PLAYING) {
int segsize;
GST_UNLOCK (buf);
segsize = buf->spec.segsize;
FD_ZERO (&writeset);
FD_SET (obuf->fd, &writeset);
select (obuf->fd + 1, NULL, &writeset, NULL, NULL);
if (ioctl (obuf->fd, SNDCTL_DSP_GETOPTR, &count) == -1) {
perror ("GETOPTR");
continue;
}
if (count.blocks > buf->spec.segtotal)
count.blocks = buf->spec.segtotal;
gst_ringbuffer_callback (buf, count.blocks);
GST_LOCK (buf);
} else {
GST_OSSDMABUFFER_SIGNAL (obuf);
GST_OSSDMABUFFER_WAIT (obuf);
}
}
GST_UNLOCK (buf);
}
static gboolean
gst_ossdmabuffer_acquire (GstRingBuffer * buf, GstRingBufferSpec * spec)
{
int tmp;
struct audio_buf_info info;
GstOssDMABuffer *obuf = (GstOssDMABuffer *) buf;;
caddr_t mmap_buf;
int mode;
gint size;
gboolean parsed;
parsed = gst_osselement_parse_caps (obuf->element, spec->caps);
if (!parsed)
return FALSE;
mode = O_RDWR;
mode |= O_NONBLOCK;
obuf->fd = open ("/dev/dsp", mode, 0);
if (obuf->fd == -1) {
perror ("OPEN");
return FALSE;
}
//obuf->frag = 0x00040008;
obuf->frag = 0xffff000a;
tmp = obuf->element->format;
if (ioctl (obuf->fd, SNDCTL_DSP_SETFMT, &tmp) == -1) {
perror ("SETFMT");
return FALSE;
}
tmp = obuf->element->channels;
if (ioctl (obuf->fd, SNDCTL_DSP_STEREO, &tmp) == -1) {
perror ("STEREO");
return FALSE;
}
tmp = obuf->element->channels;
if (ioctl (obuf->fd, SNDCTL_DSP_CHANNELS, &tmp) == -1) {
perror ("CHANNELS");
return FALSE;
}
tmp = obuf->element->rate;
if (ioctl (obuf->fd, SNDCTL_DSP_SPEED, &tmp) == -1) {
perror ("SPEED");
return FALSE;
}
if (ioctl (obuf->fd, SNDCTL_DSP_GETCAPS, &obuf->caps) == -1) {
perror ("/dev/dsp");
fprintf (stderr, "Sorry but your sound driver is too old\n");
return FALSE;
}
if (!(obuf->caps & DSP_CAP_TRIGGER) || !(obuf->caps & DSP_CAP_MMAP)) {
fprintf (stderr, "Sorry but your soundcard can't do this\n");
return FALSE;
}
if (ioctl (obuf->fd, SNDCTL_DSP_SETFRAGMENT, &obuf->frag) == -1) {
perror ("SETFRAGMENT");
return FALSE;
}
if (ioctl (obuf->fd, SNDCTL_DSP_GETOSPACE, &info) == -1) {
perror ("GETOSPACE");
return FALSE;
}
buf->spec.segsize = info.fragsize;
buf->spec.segtotal = info.fragstotal;
size = info.fragsize * info.fragstotal;
g_print ("segsize %d, segtotal %d\n", info.fragsize, info.fragstotal);
mmap_buf = (caddr_t) mmap (NULL, size, PROT_WRITE,
MAP_FILE | MAP_SHARED, obuf->fd, 0);
if ((caddr_t) mmap_buf == (caddr_t) - 1) {
perror ("mmap (write)");
return FALSE;
}
buf->data = gst_buffer_new ();
GST_BUFFER_DATA (buf->data) = mmap_buf;
GST_BUFFER_SIZE (buf->data) = size;
GST_BUFFER_FLAG_SET (buf->data, GST_BUFFER_DONTFREE);
tmp = 0;
if (ioctl (obuf->fd, SNDCTL_DSP_SETTRIGGER, &tmp) == -1) {
perror ("SETTRIGGER");
return FALSE;
}
GST_LOCK (obuf);
obuf->running = TRUE;
obuf->thread = g_thread_create ((GThreadFunc) gst_ossdmabuffer_func,
buf, TRUE, NULL);
GST_OSSDMABUFFER_WAIT (obuf);
GST_UNLOCK (obuf);
return TRUE;
}
static gboolean
gst_ossdmabuffer_release (GstRingBuffer * buf)
{
GstOssDMABuffer *obuf = (GstOssDMABuffer *) buf;;
gst_buffer_unref (buf->data);
GST_LOCK (obuf);
obuf->running = FALSE;
GST_OSSDMABUFFER_SIGNAL (obuf);
GST_UNLOCK (obuf);
g_thread_join (obuf->thread);
return TRUE;
}
static gboolean
gst_ossdmabuffer_play (GstRingBuffer * buf)
{
int tmp;
GstOssDMABuffer *obuf;
obuf = (GstOssDMABuffer *) buf;
tmp = PCM_ENABLE_OUTPUT;
if (ioctl (obuf->fd, SNDCTL_DSP_SETTRIGGER, &tmp) == -1) {
perror ("SETTRIGGER");
}
GST_OSSDMABUFFER_SIGNAL (obuf);
return TRUE;
}
static gboolean
gst_ossdmabuffer_stop (GstRingBuffer * buf)
{
int tmp;
GstOssDMABuffer *obuf;
obuf = (GstOssDMABuffer *) buf;
tmp = 0;
if (ioctl (obuf->fd, SNDCTL_DSP_SETTRIGGER, &tmp) == -1) {
perror ("SETTRIGGER");
}
GST_OSSDMABUFFER_WAIT (obuf);
buf->playseg = 0;
return TRUE;
}
/* GStreamer
* Copyright (C) 1999,2000 Erik Walthinsen <omega@cse.ogi.edu>
* 2005 Wim Taymans <wim@fluendo.com>
*
* gstossdmabuffer.h:
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Library General Public License for more details.
*
* You should have received a copy of the GNU Library General Public
* License along with this library; if not, write to the
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
* Boston, MA 02111-1307, USA.
*/
#ifndef __GST_OSSDMABUFFER_H__
#define __GST_OSSDMABUFFER_H__
#include <gst/gst.h>
#include "gstosselement.h"
#include <gst/audio/gstringbuffer.h>
G_BEGIN_DECLS
#define GST_TYPE_OSSDMABUFFER (gst_ossdmabuffer_get_type())
#define GST_OSSDMABUFFER(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_OSSDMABUFFER,GstOssDMABuffer))
#define GST_OSSDMABUFFER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_OSSDMABUFFER,GstOssDMABufferClass))
#define GST_IS_OSSDMABUFFER(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_OSSDMABUFFER))
#define GST_IS_OSSDMABUFFER_CLASS(obj) (G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_OSSDMABUFFER))
#define GST_OSSELEMENT_GET(obj) GST_OSSELEMENT (obj->element)
typedef enum {
GST_OSSDMABUFFER_OPEN = (1 << 0),
} GstOssDMABufferFlags;
typedef struct _GstOssDMABuffer GstOssDMABuffer;
typedef struct _GstOssDMABufferClass GstOssDMABufferClass;
#define GST_OSSDMABUFFER_THREAD(buf) (GST_OSSDMABUFFER(buf)->thread)
#define GST_OSSDMABUFFER_LOCK GST_LOCK
#define GST_OSSDMABUFFER_UNLOCK GST_UNLOCK
#define GST_OSSDMABUFFER_COND(buf) (GST_OSSDMABUFFER(buf)->cond)
#define GST_OSSDMABUFFER_SIGNAL(buf) (g_cond_signal (GST_OSSDMABUFFER_COND (buf)))
#define GST_OSSDMABUFFER_WAIT(buf) (g_cond_wait (GST_OSSDMABUFFER_COND (buf), GST_GET_LOCK (buf)))
struct _GstOssDMABuffer {
GstRingBuffer buffer;
GstOssElement *element;
int fd;
int caps;
int frag;
GThread *thread;
GCond *cond;
gboolean running;
};
struct _GstOssDMABufferClass {
GstRingBufferClass parent_class;
};
GType gst_ossdmabuffer_get_type(void);
G_END_DECLS
#endif /* __GST_OSSDMABUFFER_H__ */
......@@ -78,7 +78,6 @@ static void gst_osselement_set_property (GObject * object,
guint prop_id, const GValue * value, GParamSpec * pspec);
static void gst_osselement_get_property (GObject * object,
guint prop_id, GValue * value, GParamSpec * pspec);
static GstElementStateReturn gst_osselement_change_state (GstElement * element);
static GstElementClass *parent_class = NULL;
......@@ -166,8 +165,6 @@ gst_osselement_class_init (GstOssElementClass * klass)
NULL, G_PARAM_READABLE));
gobject_class->finalize = gst_osselement_finalize;
gstelement_class->change_state = gst_osselement_change_state;
}
static const GList *
......@@ -606,8 +603,10 @@ gst_osselement_sync_parms (GstOssElement * oss)
/* gint fragscale, frag_ln; */
if (oss->fd == -1)
if (oss->fd == -1) {
GST_INFO ("osselement: no fd");
return FALSE;
}
if ((oss->fragment & 0xFFFF) == 0) {
frag = 0;
......@@ -681,31 +680,16 @@ gst_osselement_sync_parms (GstOssElement * oss)
return TRUE;
}
static gboolean
gst_osselement_open_audio (GstOssElement * oss)
gboolean
gst_osselement_open_audio (GstOssElement * oss, GstOssOpenMode mode)
{
gint caps;
GstOssOpenMode mode = GST_OSSELEMENT_READ;
const GList *padlist;
g_return_val_if_fail (oss->fd == -1, FALSE);
GST_INFO ("osselement: attempting to open sound device");
/* Ok, so how do we open the device? We assume that we have (max.) one
* pad, and if this is a sinkpad, we're osssink (w). else, we're osssrc (r) */
GST_LOCK (oss);
padlist = GST_ELEMENT (oss)->pads;
if (padlist != NULL) {
GstPad *firstpad = padlist->data;
if (GST_PAD_IS_SINK (firstpad)) {
mode = GST_OSSELEMENT_WRITE;
}
GST_UNLOCK (oss);
} else {
GST_UNLOCK (oss);
if (mode == GST_OSSELEMENT_MIXER)
goto do_mixer;
}
/* first try to open the sound card */
if (mode == GST_OSSELEMENT_WRITE) {
......@@ -831,7 +815,7 @@ do_mixer:
return TRUE;
}
static void
void
gst_osselement_close_audio (GstOssElement * oss)
{
gst_ossmixer_free_list (oss);
......@@ -974,34 +958,6 @@ gst_osselement_get_property (GObject * object,
}
}
static GstElementStateReturn
gst_osselement_change_state (GstElement * element)
{
GstOssElement *oss = GST_OSSELEMENT (element);
switch (GST_STATE_TRANSITION (element)) {
case GST_STATE_NULL_TO_READY:
if (!gst_osselement_open_audio (oss)) {
return GST_STATE_FAILURE;
}
GST_INFO ("osselement: opened sound device");
break;
case GST_STATE_READY_TO_NULL:
gst_osselement_close_audio (oss);
gst_osselement_reset (oss);
GST_INFO ("osselement: closed sound device");
break;
default:
break;
}
if (GST_ELEMENT_CLASS (parent_class)->change_state)
return GST_ELEMENT_CLASS (parent_class)->change_state (element);
return GST_STATE_SUCCESS;
}
/* rate probing code */
......
......@@ -51,6 +51,7 @@ typedef struct _GstOssElementClass GstOssElementClass;
typedef enum {
GST_OSSELEMENT_READ,
GST_OSSELEMENT_WRITE,
GST_OSSELEMENT_MIXER,
} GstOssOpenMode;
typedef struct _GstOssDeviceCombination {
......@@ -115,8 +116,12 @@ gboolean gst_osselement_parse_caps (GstOssElement *oss,
gboolean gst_osselement_merge_fixed_caps (GstOssElement *oss,
GstCaps *caps);
gboolean gst_osselement_open_audio (GstOssElement *oss, GstOssOpenMode mode);
gboolean gst_osselement_sync_parms (GstOssElement *oss);
void gst_osselement_reset (GstOssElement *oss);
void gst_osselement_close_audio (GstOssElement *oss);
gboolean gst_osselement_convert (GstOssElement *oss,
GstFormat src_format,
......
This diff is collapsed.
......@@ -29,19 +29,17 @@
#include "gstosselement.h"
#include <gst/audio/audioclock.h>
#include <gst/audio/gstbaseaudiosink.h>
G_BEGIN_DECLS
#define GST_TYPE_OSSSINK \
(gst_osssink_get_type())
#define GST_OSSSINK(obj) \
(G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_OSSSINK,GstOssSink))
#define GST_OSSSINK_CLASS(klass) \
(G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_OSSSINK,GstOssSinkClass))
#define GST_IS_OSSSINK(obj) \
(G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_OSSSINK))
#define GST_IS_OSSSINK_CLASS(obj) \
(G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_OSSSINK))
#define GST_TYPE_OSSSINK (gst_osssink_get_type())
#define GST_OSSSINK(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_OSSSINK,GstOssSink))
#define GST_OSSSINK_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_OSSSINK,GstOssSinkClass))
#define GST_IS_OSSSINK(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_OSSSINK))
#define GST_IS_OSSSINK_CLASS(obj) (G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_OSSSINK))
#define GST_OSSELEMENT_GET(obj) GST_OSSELEMENT (obj->element)
typedef enum {
GST_OSSSINK_OPEN = GST_ELEMENT_FLAG_LAST,
......@@ -53,15 +51,13 @@ typedef struct _GstOssSink GstOssSink;
typedef struct _GstOssSinkClass GstOssSinkClass;
struct _GstOssSink {
GstOssElement element;
GstBaseAudioSink sink;
GstPad *sinkpad;
GstOssElement *element;
GstClock *provided_clock;
GstClock *clock;
gboolean sync;
guint64 handled;
gboolean in_eos;
gboolean mute;
guint bufsize;
......@@ -69,10 +65,7 @@ struct _GstOssSink {
};
struct _GstOssSinkClass {
GstOssElementClass parent_class;
/* signals */
void (*handoff) (GstElement *element,GstPad *pad);
GstBaseAudioSinkClass parent_class;
};
GType gst_osssink_get_type(void);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment