summaryrefslogtreecommitdiffstats
path: root/include/xas
diff options
context:
space:
mode:
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 */