xoreos  0.0.5
Public Member Functions | Protected Member Functions | Private Attributes | List of all members
Sound::PacketizedPCMStream Class Reference
Inheritance diagram for Sound::PacketizedPCMStream:
Inheritance graph
[legend]
Collaboration diagram for Sound::PacketizedPCMStream:
Collaboration graph
[legend]

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

AudioStreammakeStream (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
 

Detailed Description

Definition at line 155 of file pcm.cpp.

Constructor & Destructor Documentation

◆ PacketizedPCMStream()

Sound::PacketizedPCMStream::PacketizedPCMStream ( int  rate,
byte  flags,
int  channels 
)
inline

Definition at line 157 of file pcm.cpp.

Member Function Documentation

◆ makeStream()

AudioStream * Sound::PacketizedPCMStream::makeStream ( Common::SeekableReadStream data)
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().

Here is the call graph for this function:

Member Data Documentation

◆ _flags

byte Sound::PacketizedPCMStream::_flags
private

Definition at line 164 of file pcm.cpp.

Referenced by makeStream().


The documentation for this class was generated from the following file: