36 #include "audio/audiostream.h" 38 #include "common/list.h" 39 #include "common/scummsys.h" 40 #include "common/types.h" 44 class SeekableReadStream;
50 class SeekableAudioStream;
53 #include "common/pack-start.h" 57 uint16 datablock_offset;
69 #include "common/pack-end.h" 76 int readBuffer(int16 *buffer,
const int numSamples)
override;
78 bool isStereo()
const override {
return false; }
80 int getRate()
const override {
return _rate; }
82 bool endOfData()
const override {
return (_curBlock == _blocks.end()) && (_blockLeft == 0); }
84 bool seek(
const Timestamp &where)
override;
92 const DisposeAfterUse::Flag _disposeAfterUse;
94 const bool _isUnsigned;
126 void updateBlockIfNeeded();
136 kSampleBufferLength = 2048
138 byte _buffer[kSampleBufferLength];
146 int fillBuffer(
int maxSamples);
Timestamp getLength() const override
Definition: voc.h:86
Definition: timestamp.h:83
Definition: audiostream.h:212
bool endOfData() const override
Definition: voc.h:82
SeekableAudioStream * makeVOCStream(Common::SeekableReadStream *stream, byte flags, DisposeAfterUse::Flag disposeAfterUse=DisposeAfterUse::NO)
int getRate() const override
Definition: voc.h:80
int getSampleRateFromVOCRate(int vocSR)
Definition: algorithm.h:29
Definition: list_intern.h:48
bool isStereo() const override
Definition: voc.h:78