22 #ifndef BLADERUNNER_AUD_STREAM_H 23 #define BLADERUNNER_AUD_STREAM_H 25 #include "bladerunner/adpcm_decoder.h" 27 #include "audio/audiostream.h" 28 #include "common/endian.h" 29 #include "common/types.h" 41 uint16 _deafBlockRemain;
44 uint32 _sizeDecompressed;
46 byte _compressionType;
47 int _overrideFrequency;
51 void init(byte *data);
54 AudStream(byte *data,
int overrideFrequency = -1);
58 int readBuffer(int16 *buffer,
const int numSamples)
override;
59 bool isStereo()
const override {
return false; }
60 int getRate()
const override {
return _overrideFrequency > 0 ? _overrideFrequency : _frequency; };
61 bool endOfData()
const override {
return _p == _end; }
63 uint32 getLength()
const;
64 bool startAtSecond(uint32 startSecond);
65 int getBytesPerSecond()
const;
bool endOfData() const override
Definition: aud_stream.h:61
int readBuffer(int16 *buffer, const int numSamples) override
int getRate() const override
Definition: aud_stream.h:60
Definition: audiostream.h:109
Definition: adpcm_decoder.h:29
Definition: audio_cache.h:33
Definition: aud_stream.h:35
bool isStereo() const override
Definition: aud_stream.h:59