xoreos
0.0.5
|
Public Member Functions | |
PacketizedADPCMStream (ADPCMTypes type, int rate, int channels, uint32 blockAlign) | |
Public Member Functions inherited from Sound::StatelessPacketizedAudioStream | |
StatelessPacketizedAudioStream (int rate, int channels) | |
virtual | ~StatelessPacketizedAudioStream () |
int | getChannels () const |
Return the number channels in this stream. More... | |
int | getRate () const |
Sample rate of the stream. More... | |
size_t | readBuffer (int16 *data, const size_t numSamples) |
Fill the given buffer with up to numSamples samples. More... | |
bool | endOfData () const |
End of data reached? If this returns true, it means that at this time there is no data available in the stream. More... | |
bool | endOfStream () const |
End of stream reached? If this returns true, it means that all data in this stream is used up and no additional data will appear in it in the future. More... | |
void | queuePacket (Common::SeekableReadStream *data) |
Queue the next packet to be decoded. More... | |
void | finish () |
Mark this stream as finished. More... | |
bool | isFinished () const |
Is the stream marked as finished? More... | |
Public Member Functions inherited from Sound::PacketizedAudioStream | |
virtual | ~PacketizedAudioStream () |
Public Member Functions inherited from Sound::AudioStream | |
virtual | ~AudioStream () |
Protected Member Functions | |
AudioStream * | makeStream (Common::SeekableReadStream *data) |
Make the AudioStream for a given packet. More... | |
Private Attributes | |
ADPCMTypes | _type |
uint32 | _blockAlign |
Additional Inherited Members | |
Static Public Attributes inherited from Sound::AudioStream | |
static const size_t | kSizeInvalid = SIZE_MAX |
|
inline |
|
protectedvirtual |
Make the AudioStream for a given packet.
Implements Sound::StatelessPacketizedAudioStream.
Definition at line 669 of file adpcm.cpp.
References _blockAlign, _type, Sound::StatelessPacketizedAudioStream::getChannels(), Sound::StatelessPacketizedAudioStream::getRate(), Sound::makeADPCMStream(), and Common::SeekableReadStream::size().
|
private |
Definition at line 666 of file adpcm.cpp.
Referenced by makeStream().
|
private |
Definition at line 665 of file adpcm.cpp.
Referenced by makeStream().