#include <xan_dpcm.h>
Public Member Functions | |
XanDPCMStream (int rate, int channels) | |
Public Member Functions inherited from Audio::StatelessPacketizedAudioStream | |
StatelessPacketizedAudioStream (uint rate, uint channels) | |
bool | isStereo () const |
int | getRate () const |
int | readBuffer (int16 *data, const int numSamples) |
bool | endOfData () const |
bool | endOfStream () const |
void | queuePacket (Common::SeekableReadStream *data) |
void | finish () |
uint | getChannels () const |
Protected Member Functions | |
AudioStream * | makeStream (Common::SeekableReadStream *data) override |
Implements the Xan DPCM decoder used in Crusader: No Regret and Wing Commander IV movies. Implementation based on the description on the MultiMedia Wiki: https://wiki.multimedia.cx/index.php/Xan_DPCM
Audio::XanDPCMStream::XanDPCMStream | ( | int | rate, |
int | channels | ||
) |
Create a Xan DPCM stream
rate | sampling rate (samples per second) |
channels | number of channels to decode |
|
overrideprotectedvirtual |
Create an AudioStream for a given packet.
Implements Audio::StatelessPacketizedAudioStream.