diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/bank.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -52,6 +52,10 @@ void xas_bank_stop(xas_bank *bank) { bank->index = 0; } +int xas_bank_active(xas_bank *bank) { + return bank->flags & XAS_BANK_ACTIVE; +} + static inline void *ptr(xas_audio_stream *stream, void *buf, size_t index) { return ((uint8_t *)buf) + stream->channels * stream->sample_size * index; } |