22 #ifndef TINSEL_ADPCM_H 23 #define TINSEL_ADPCM_H 25 #include "audio/decoders/adpcm_intern.h" 38 void reset()
override {
40 memset(&_status, 0,
sizeof(_status));
43 int16 decodeTinsel(int16,
double);
44 void readBufferTinselHeader();
48 : ADPCMStream(stream, disposeAfterUse, size, rate, channels, blockAlign) {
51 error(
"Tinsel_ADPCMStream(): blockAlign isn't specified");
54 error(
"Tinsel_ADPCMStream(): Tinsel ADPCM only supports mono");
56 memset(&_status, 0,
sizeof(_status));
66 int readBuffer(int16 *buffer,
const int numSamples)
override;
74 void reset()
override {
87 int readBuffer(int16 *buffer,
const int numSamples)
override;
95 int readBuffer(int16 *buffer,
const int numSamples)
override;
virtual int readBuffer(int16 *buffer, const int numSamples)=0
void NORETURN_PRE error(MSVC_PRINTF const char *s,...) GCC_PRINTF(1
Definition: adpcm_intern.h:41