diff options
author | XANTRONIX Development | 2022-02-15 20:52:32 -0500 |
---|---|---|
committer | XANTRONIX Development | 2022-02-15 20:52:32 -0500 |
commit | 1fe063a6d66048e6f95d1f60a7d7f837799cefe7 (patch) | |
tree | 45c5dbde3c59bc3952667634076f540c0ab50cf6 /src | |
parent | 1a20363a470b94e4ebf63819cd3a8adf6347cf29 (diff) | |
download | xas-1fe063a6d66048e6f95d1f60a7d7f837799cefe7.tar.gz xas-1fe063a6d66048e6f95d1f60a7d7f837799cefe7.tar.bz2 xas-1fe063a6d66048e6f95d1f60a7d7f837799cefe7.zip |
Implement xas_audio_stream_buffer()
Implement xas_audio_stream_buffer() to return the input/output buffer
associated with an audio stream
Diffstat (limited to 'src')
-rw-r--r-- | src/audio.c | 4 |
1 files changed, 4 insertions, 0 deletions
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; |