audio: clean up audiosink headers

This commit is contained in:
Wim Taymans 2011-06-21 18:13:48 +02:00
parent d9e1e23094
commit 2e837743c3
3 changed files with 4 additions and 6 deletions

View file

@ -86,7 +86,7 @@ static gboolean gst_alsasink_prepare (GstAudioSink * asink,
GstRingBufferSpec * spec);
static gboolean gst_alsasink_unprepare (GstAudioSink * asink);
static gboolean gst_alsasink_close (GstAudioSink * asink);
static guint gst_alsasink_write (GstAudioSink * asink, gpointer data,
static gint gst_alsasink_write (GstAudioSink * asink, gpointer data,
guint length);
static guint gst_alsasink_delay (GstAudioSink * asink);
static void gst_alsasink_reset (GstAudioSink * asink);
@ -846,7 +846,7 @@ xrun_recovery (GstAlsaSink * alsa, snd_pcm_t * handle, gint err)
return err;
}
static guint
static gint
gst_alsasink_write (GstAudioSink * asink, gpointer data, guint length)
{
GstAlsaSink *alsa;

View file

@ -191,7 +191,7 @@ gst_audioringbuffer_class_init (GstAudioRingBufferClass * klass)
GST_DEBUG_FUNCPTR (gst_audioringbuffer_activate);
}
typedef guint (*WriteFunc) (GstAudioSink * sink, gpointer data, guint length);
typedef gint (*WriteFunc) (GstAudioSink * sink, gpointer data, guint length);
/* this internal thread does nothing else but write samples to the audio device.
* It will write each segment in the ringbuffer and will update the play

View file

@ -83,9 +83,7 @@ struct _GstAudioSinkClass {
/* close the device */
gboolean (*close) (GstAudioSink *sink);
/* write samples to the device */
/* FIXME 0.11: change return value to gint, as most implementation use that
* already anyway */
guint (*write) (GstAudioSink *sink, gpointer data, guint length);
gint (*write) (GstAudioSink *sink, gpointer data, guint length);
/* get number of samples queued in the device */
guint (*delay) (GstAudioSink *sink);
/* reset the audio device, unblock from a write */