#ifndef _XAS_BANK_H #define _XAS_BANK_H #include #include #define XAS_BANK_IDLE 0 #define XAS_BANK_ACTIVE (1 << 0) typedef struct _xas_bank_entry { size_t duration; } xas_bank_entry; typedef struct _xas_bank { xas_audio_format format; size_t entry_size, entry_count; int flags; float gain; size_t entry, index; } xas_bank; xas_bank *xas_bank_new(xas_audio_format format, size_t entry_size, size_t entry_count); void xas_bank_destroy(xas_bank *bank); int xas_bank_play(xas_bank *bank, size_t entry, float gain); void xas_bank_stop(xas_bank *bank); int xas_bank_active(xas_bank *bank); ssize_t xas_bank_record(xas_bank *bank, xas_audio_stream *input, size_t entry_index, size_t count); xas_audio_stream *xas_bank_stream_new(xas_bank *bank); #endif /* _XAS_BANK_H */