audioringbuffer: Use guint8 instead of guchar

This commit is contained in:
Sebastian Dröge 2011-12-20 14:34:50 +01:00
parent 79f23cb643
commit 338622fe7e
2 changed files with 7 additions and 7 deletions

View file

@ -54,7 +54,7 @@ static void gst_audio_ring_buffer_finalize (GObject * object);
static gboolean gst_audio_ring_buffer_pause_unlocked (GstAudioRingBuffer * buf); static gboolean gst_audio_ring_buffer_pause_unlocked (GstAudioRingBuffer * buf);
static void default_clear_all (GstAudioRingBuffer * buf); static void default_clear_all (GstAudioRingBuffer * buf);
static guint default_commit (GstAudioRingBuffer * buf, guint64 * sample, static guint default_commit (GstAudioRingBuffer * buf, guint64 * sample,
guchar * data, gint in_samples, gint out_samples, gint * accum); guint8 * data, gint in_samples, gint out_samples, gint * accum);
/* ringbuffer abstract base class */ /* ringbuffer abstract base class */
G_DEFINE_ABSTRACT_TYPE (GstAudioRingBuffer, gst_audio_ring_buffer, G_DEFINE_ABSTRACT_TYPE (GstAudioRingBuffer, gst_audio_ring_buffer,
@ -1365,7 +1365,7 @@ G_STMT_START { \
static guint static guint
default_commit (GstAudioRingBuffer * buf, guint64 * sample, default_commit (GstAudioRingBuffer * buf, guint64 * sample,
guchar * data, gint in_samples, gint out_samples, gint * accum) guint8 * data, gint in_samples, gint out_samples, gint * accum)
{ {
gint segdone; gint segdone;
gint segsize, segtotal, bpf, sps; gint segsize, segtotal, bpf, sps;
@ -1529,7 +1529,7 @@ not_started:
*/ */
guint guint
gst_audio_ring_buffer_commit (GstAudioRingBuffer * buf, guint64 * sample, gst_audio_ring_buffer_commit (GstAudioRingBuffer * buf, guint64 * sample,
guchar * data, gint in_samples, gint out_samples, gint * accum) guint8 * data, gint in_samples, gint out_samples, gint * accum)
{ {
GstAudioRingBufferClass *rclass; GstAudioRingBufferClass *rclass;
guint res = -1; guint res = -1;
@ -1569,7 +1569,7 @@ gst_audio_ring_buffer_commit (GstAudioRingBuffer * buf, guint64 * sample,
*/ */
guint guint
gst_audio_ring_buffer_read (GstAudioRingBuffer * buf, guint64 sample, gst_audio_ring_buffer_read (GstAudioRingBuffer * buf, guint64 sample,
guchar * data, guint len) guint8 * data, guint len)
{ {
gint segdone; gint segdone;
gint segsize, segtotal, bpf, sps; gint segsize, segtotal, bpf, sps;

View file

@ -255,7 +255,7 @@ struct _GstAudioRingBufferClass {
gboolean (*activate) (GstAudioRingBuffer *buf, gboolean active); gboolean (*activate) (GstAudioRingBuffer *buf, gboolean active);
guint (*commit) (GstAudioRingBuffer * buf, guint64 *sample, guint (*commit) (GstAudioRingBuffer * buf, guint64 *sample,
guchar * data, gint in_samples, guint8 * data, gint in_samples,
gint out_samples, gint * accum); gint out_samples, gint * accum);
void (*clear_all) (GstAudioRingBuffer * buf); void (*clear_all) (GstAudioRingBuffer * buf);
@ -314,12 +314,12 @@ void gst_audio_ring_buffer_clear_all (GstAudioRingBuffer *buf);
/* commit samples */ /* commit samples */
guint gst_audio_ring_buffer_commit (GstAudioRingBuffer * buf, guint64 *sample, guint gst_audio_ring_buffer_commit (GstAudioRingBuffer * buf, guint64 *sample,
guchar * data, gint in_samples, guint8 * data, gint in_samples,
gint out_samples, gint * accum); gint out_samples, gint * accum);
/* read samples */ /* read samples */
guint gst_audio_ring_buffer_read (GstAudioRingBuffer *buf, guint64 sample, guint gst_audio_ring_buffer_read (GstAudioRingBuffer *buf, guint64 sample,
guchar *data, guint len); guint8 *data, guint len);
/* mostly protected */ /* mostly protected */
/* not yet implemented /* not yet implemented