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

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

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

Detailed Description

Definition at line 656 of file adpcm.cpp.

Constructor & Destructor Documentation

◆ PacketizedADPCMStream()

Sound::PacketizedADPCMStream::PacketizedADPCMStream ( ADPCMTypes  type,
int  rate,
int  channels,
uint32  blockAlign 
)
inline

Definition at line 658 of file adpcm.cpp.

Member Function Documentation

◆ makeStream()

AudioStream * Sound::PacketizedADPCMStream::makeStream ( Common::SeekableReadStream data)
protectedvirtual

Member Data Documentation

◆ _blockAlign

uint32 Sound::PacketizedADPCMStream::_blockAlign
private

Definition at line 666 of file adpcm.cpp.

Referenced by makeStream().

◆ _type

ADPCMTypes Sound::PacketizedADPCMStream::_type
private

Definition at line 665 of file adpcm.cpp.

Referenced by makeStream().


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