28 #ifndef AUDIO_3DO_SDX2_H 29 #define AUDIO_3DO_SDX2_H 31 #include "common/scummsys.h" 32 #include "common/types.h" 33 #include "common/stream.h" 35 #include "audio/audiostream.h" 40 #define AUDIO_3DO_CACHE_SIZE 1024 58 const uint16 _sampleRate;
62 int32 _streamBytesLeft;
68 int getRate()
const {
return _sampleRate; }
70 int readBuffer(int16 *buffer,
const int numSamples);
78 int16 decodeSample(byte compressedNibble);
86 const uint16 _sampleRate;
90 int32 _streamBytesLeft;
96 int getRate()
const {
return _sampleRate; }
98 int readBuffer(int16 *buffer,
const int numSamples);
122 uint32 *audioLengthMSecsPtr = NULL,
123 DisposeAfterUse::Flag disposeAfterUse = DisposeAfterUse::YES,
143 uint32 *audioLengthMSecsPtr = NULL,
144 DisposeAfterUse::Flag disposeAfterUse = DisposeAfterUse::YES,
bool endOfData() const
Definition: 3do.h:94
virtual int64 size() const =0
bool isStereo() const
Definition: 3do.h:67
virtual int64 pos() const =0
RewindableAudioStream * make3DO_SDX2AudioStream(Common::SeekableReadStream *stream, uint16 sampleRate, bool stereo, uint32 *audioLengthMSecsPtr=NULL, DisposeAfterUse::Flag disposeAfterUse=DisposeAfterUse::YES, audio_3DO_SDX2_PersistentSpace *persistentSpacePtr=NULL)
bool endOfData() const
Definition: 3do.h:66
int getRate() const
Definition: 3do.h:68
bool isStereo() const
Definition: 3do.h:95
Definition: audiostream.h:109
RewindableAudioStream * make3DO_ADP4AudioStream(Common::SeekableReadStream *stream, uint16 sampleRate, bool stereo, uint32 *audioLengthMSecsPtr=NULL, DisposeAfterUse::Flag disposeAfterUse=DisposeAfterUse::YES, audio_3DO_ADP4_PersistentSpace *persistentSpacePtr=NULL)
int getRate() const
Definition: 3do.h:96