ResidualVM logo ResidualVM website - Forums - Contact us BuildBot - Doxygen - Wiki curved edge

Stark::Formats::ISSADPCMStream Class Reference

ADPCM decoder for the .iss files. More...

Inheritance diagram for Stark::Formats::ISSADPCMStream:
Collaboration diagram for Stark::Formats::ISSADPCMStream:

List of all members.

Public Member Functions

 ISSADPCMStream (Common::SeekableReadStream *stream, DisposeAfterUse::Flag disposeAfterUse, uint32 size, int rate, int channels, uint32 blockAlign)

Protected Member Functions

int readBuffer (int16 *buffer, const int numSamples)
 Fill the given buffer with up to numSamples samples.

Detailed Description

ADPCM decoder for the .iss files.

Definition at line 35 of file iss.cpp.


Constructor & Destructor Documentation

Stark::Formats::ISSADPCMStream::ISSADPCMStream ( Common::SeekableReadStream stream,
DisposeAfterUse::Flag  disposeAfterUse,
uint32  size,
int  rate,
int  channels,
uint32  blockAlign 
) [inline]

Definition at line 37 of file iss.cpp.


Member Function Documentation

int Stark::Formats::ISSADPCMStream::readBuffer ( int16 buffer,
const int  numSamples 
) [inline, protected, virtual]

Fill the given buffer with up to numSamples samples.

Returns the actual number of samples read, or -1 if a critical error occurred (note: you *must* check if this value is less than what you requested, this can happen when the stream is fully used up).

Data has to be in native endianess, 16 bit per sample, signed. For stereo stream, buffer will be filled with interleaved left and right channel samples, starting with a left sample. Furthermore, the samples in the left and right are summed up. So if you request 4 samples from a stereo stream, you will get a total of two left channel and two right channel samples.

Implements Audio::AudioStream.

Definition at line 41 of file iss.cpp.


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


Generated on Sat Mar 23 2019 05:09:06 for ResidualVM by doxygen 1.7.1
curved edge   curved edge