diff options
-rw-r--r-- | include/xas/audio.h | 2 | ||||
-rw-r--r-- | src/audio.c | 4 |
2 files changed, 6 insertions, 0 deletions
diff --git a/include/xas/audio.h b/include/xas/audio.h index ab6bce4..3a9ab69 100644 --- a/include/xas/audio.h +++ b/include/xas/audio.h @@ -84,6 +84,8 @@ xas_audio_stream *xas_audio_stream_new_source(xas_audio_fill fill, 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, void *samples, size_t count); diff --git a/src/audio.c b/src/audio.c index 561870f..1f20f3e 100644 --- a/src/audio.c +++ b/src/audio.c @@ -93,6 +93,10 @@ void xas_audio_stream_destroy(xas_audio_stream *stream) { free(stream); } +void *xas_audio_stream_buffer(xas_audio_stream *stream) { + return stream + 1; +} + static inline int stream_flush(xas_audio_stream *stream) { if (stream->buffer_count == 0) { return 0; |