summaryrefslogtreecommitdiffstats
path: root/include/xas
diff options
context:
space:
mode:
authorXANTRONIX Development2022-02-16 17:35:36 -0500
committerXANTRONIX Development2022-02-16 17:35:36 -0500
commit45a07925a5ec2c0ebe3771ab258e0751d4113a68 (patch)
tree8dace8b7198183db43c636052050d14def47a2ef /include/xas
parent7f5e3cde03b329539fc0b87cc7c97d8c89e76c51 (diff)
downloadxas-45a07925a5ec2c0ebe3771ab258e0751d4113a68.tar.gz
xas-45a07925a5ec2c0ebe3771ab258e0751d4113a68.tar.bz2
xas-45a07925a5ec2c0ebe3771ab258e0751d4113a68.zip
Use consistent sink/source naming in src/audio.c
Diffstat (limited to 'include/xas')
-rw-r--r--include/xas/audio.h12
1 files changed, 6 insertions, 6 deletions
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 */