mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 04:01:08 +00:00
audioringbuffer: Use guint8 instead of guchar
This commit is contained in:
parent
79f23cb643
commit
338622fe7e
2 changed files with 7 additions and 7 deletions
|
@ -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;
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue