xoreos
0.0.5
|
Public Member Functions | |
PacketizedPCMStream (int rate, byte flags, int channels) | |
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 | |
byte | _flags |
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 167 of file pcm.cpp.
References _flags, Sound::StatelessPacketizedAudioStream::getChannels(), Sound::StatelessPacketizedAudioStream::getRate(), and Sound::makePCMStream().
|
private |
Definition at line 164 of file pcm.cpp.
Referenced by makeStream().