update for audio base src api change

This commit is contained in:
Wim Taymans 2012-09-10 11:32:25 +02:00
parent 6dc7b4c3c7
commit 497ff16355
3 changed files with 10 additions and 6 deletions

View file

@ -94,7 +94,7 @@ static gboolean gst_pulsesrc_prepare (GstAudioSrc * asrc,
static gboolean gst_pulsesrc_unprepare (GstAudioSrc * asrc); static gboolean gst_pulsesrc_unprepare (GstAudioSrc * asrc);
static guint gst_pulsesrc_read (GstAudioSrc * asrc, gpointer data, static guint gst_pulsesrc_read (GstAudioSrc * asrc, gpointer data,
guint length); guint length, GstClockTime * timestamp);
static guint gst_pulsesrc_delay (GstAudioSrc * asrc); static guint gst_pulsesrc_delay (GstAudioSrc * asrc);
static void gst_pulsesrc_reset (GstAudioSrc * src); static void gst_pulsesrc_reset (GstAudioSrc * src);
@ -990,7 +990,8 @@ gst_pulsesrc_unprepare (GstAudioSrc * asrc)
} }
static guint static guint
gst_pulsesrc_read (GstAudioSrc * asrc, gpointer data, guint length) gst_pulsesrc_read (GstAudioSrc * asrc, gpointer data, guint length,
GstClockTime * timestamp)
{ {
GstPulseSrc *pulsesrc = GST_PULSESRC_CAST (asrc); GstPulseSrc *pulsesrc = GST_PULSESRC_CAST (asrc);
size_t sum = 0; size_t sum = 0;

View file

@ -95,7 +95,8 @@ static gboolean gst_oss_src_close (GstAudioSrc * asrc);
static gboolean gst_oss_src_prepare (GstAudioSrc * asrc, static gboolean gst_oss_src_prepare (GstAudioSrc * asrc,
GstAudioRingBufferSpec * spec); GstAudioRingBufferSpec * spec);
static gboolean gst_oss_src_unprepare (GstAudioSrc * asrc); static gboolean gst_oss_src_unprepare (GstAudioSrc * asrc);
static guint gst_oss_src_read (GstAudioSrc * asrc, gpointer data, guint length); static guint gst_oss_src_read (GstAudioSrc * asrc, gpointer data, guint length,
GstClockTime * timestamp);
static guint gst_oss_src_delay (GstAudioSrc * asrc); static guint gst_oss_src_delay (GstAudioSrc * asrc);
static void gst_oss_src_reset (GstAudioSrc * asrc); static void gst_oss_src_reset (GstAudioSrc * asrc);
@ -505,7 +506,8 @@ couldnt_reopen:
} }
static guint static guint
gst_oss_src_read (GstAudioSrc * asrc, gpointer data, guint length) gst_oss_src_read (GstAudioSrc * asrc, gpointer data, guint length,
GstClockTime * timestamp)
{ {
return read (GST_OSS_SRC (asrc)->fd, data, length); return read (GST_OSS_SRC (asrc)->fd, data, length);
} }

View file

@ -94,7 +94,7 @@ static gboolean gst_oss4_source_prepare (GstAudioSrc * asrc,
GstAudioRingBufferSpec * spec); GstAudioRingBufferSpec * spec);
static gboolean gst_oss4_source_unprepare (GstAudioSrc * asrc); static gboolean gst_oss4_source_unprepare (GstAudioSrc * asrc);
static guint gst_oss4_source_read (GstAudioSrc * asrc, gpointer data, static guint gst_oss4_source_read (GstAudioSrc * asrc, gpointer data,
guint length); guint length, GstClockTime * timestamp);
static guint gst_oss4_source_delay (GstAudioSrc * asrc); static guint gst_oss4_source_delay (GstAudioSrc * asrc);
static void gst_oss4_source_reset (GstAudioSrc * asrc); static void gst_oss4_source_reset (GstAudioSrc * asrc);
@ -485,7 +485,8 @@ couldnt_reopen:
} }
static guint static guint
gst_oss4_source_read (GstAudioSrc * asrc, gpointer data, guint length) gst_oss4_source_read (GstAudioSrc * asrc, gpointer data, guint length,
GstClockTime * timestamp)
{ {
GstOss4Source *oss; GstOss4Source *oss;
int n; int n;