From 1fe063a6d66048e6f95d1f60a7d7f837799cefe7 Mon Sep 17 00:00:00 2001 From: XANTRONIX Development Date: Tue, 15 Feb 2022 20:52:32 -0500 Subject: Implement xas_audio_stream_buffer() Implement xas_audio_stream_buffer() to return the input/output buffer associated with an audio stream --- src/audio.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src') 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; -- cgit v1.2.3