From 45a07925a5ec2c0ebe3771ab258e0751d4113a68 Mon Sep 17 00:00:00 2001 From: XANTRONIX Development Date: Wed, 16 Feb 2022 17:35:36 -0500 Subject: Use consistent sink/source naming in src/audio.c --- include/xas/audio.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'include/xas') diff --git a/include/xas/audio.h b/include/xas/audio.h index 3a9ab69..4cf3221 100644 --- a/include/xas/audio.h +++ b/include/xas/audio.h @@ -23,12 +23,12 @@ typedef struct _xas_audio_stream xas_audio_stream; typedef ssize_t (*xas_audio_drain)(void *ctx, void *samples, size_t count, - xas_audio_stream *stream); + xas_audio_stream *sink); typedef ssize_t (*xas_audio_fill)(void *ctx, void *samples, size_t count, - xas_audio_stream *stream); + xas_audio_stream *source); typedef void (*xas_audio_cleanup)(void *ctx, xas_audio_stream *stream); @@ -86,14 +86,14 @@ void xas_audio_stream_destroy(xas_audio_stream *stream); void *xas_audio_stream_buffer(xas_audio_stream *stream); -ssize_t xas_audio_stream_write(xas_audio_stream *stream, +ssize_t xas_audio_stream_write(xas_audio_stream *sink, void *samples, size_t count); -ssize_t xas_audio_stream_read(xas_audio_stream *stream, +int xas_audio_stream_flush(xas_audio_stream *stream); + +ssize_t xas_audio_stream_read(xas_audio_stream *source, void **samples, size_t count); -int xas_audio_stream_flush(xas_audio_stream *stream); - #endif /* _XAS_AUDIO_H */ -- cgit v1.2.3