xoreos
0.0.5
|
An AudioStream designed to work in terms of packets. More...
#include <audiostream.h>
Public Member Functions | |
virtual | ~PacketizedAudioStream () |
virtual void | queuePacket (Common::SeekableReadStream *data)=0 |
Queue the next packet to be decoded. More... | |
virtual void | finish ()=0 |
Mark this stream as finished. More... | |
virtual bool | isFinished () const =0 |
Is the stream marked as finished? More... | |
Public Member Functions inherited from Sound::AudioStream | |
virtual | ~AudioStream () |
virtual size_t | readBuffer (int16 *buffer, const size_t numSamples)=0 |
Fill the given buffer with up to numSamples samples. More... | |
virtual int | getChannels () const =0 |
Return the number channels in this stream. More... | |
virtual int | getRate () const =0 |
Sample rate of the stream. More... | |
virtual bool | endOfData () const =0 |
End of data reached? If this returns true, it means that at this time there is no data available in the stream. More... | |
virtual 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... | |
Additional Inherited Members | |
Static Public Attributes inherited from Sound::AudioStream | |
static const size_t | kSizeInvalid = SIZE_MAX |
An AudioStream designed to work in terms of packets.
It is similar in concept to QueuingAudioStream, but does not necessarily rely on the data from each queued AudioStream being separate.
Definition at line 271 of file audiostream.h.
|
inlinevirtual |
Definition at line 273 of file audiostream.h.
|
pure virtual |
Mark this stream as finished.
That is, signal that no further data will be queued to it. Only after this has been done can this stream ever 'end'.
Implemented in Sound::StatelessPacketizedAudioStream, Sound::PacketizedVorbisStream, Sound::WMACodec, and Sound::AACDecoder.
|
pure virtual |
Is the stream marked as finished?
Implemented in Sound::StatelessPacketizedAudioStream, Sound::PacketizedVorbisStream, Sound::WMACodec, and Sound::AACDecoder.
|
pure virtual |
Queue the next packet to be decoded.
Implemented in Sound::StatelessPacketizedAudioStream, Sound::PacketizedVorbisStream, Sound::WMACodec, and Sound::AACDecoder.