xoreos
0.0.5
|
Public Member Functions | |
BinkAudioTrack (size_t index, AudioInfo &audio) | |
~BinkAudioTrack () | |
bool | canBufferData () const |
void | decodeAudio (Common::SeekableReadStream &bink, const std::vector< VideoFrame > &frames, const std::vector< AudioInfo > &audioTracks, const Common::Timestamp &endTime) |
Decode audio data up to endTime. More... | |
Protected Member Functions | |
Sound::AudioStream * | getAudioStream () const |
Private Member Functions | |
float | getFloat (Common::BitStream &bits) |
void | audioBlock (Common::BitStream &bits, int16 *out) |
Decode an audio block. More... | |
void | audioBlockDCT (Common::BitStream &bits) |
Decode a DCT'd audio block. More... | |
void | audioBlockRDFT (Common::BitStream &bits) |
Decode a RDFT'd audio block. More... | |
void | readAudioCoeffs (Common::BitStream &bits, float *coeffs) |
Static Private Member Functions | |
static void | floatToInt16Interleave (int16 *dst, const float **src, uint32 length, uint8 channels) |
Private Attributes | |
size_t | _index |
AudioInfo & | _info |
Sound::PacketizedAudioStream * | _audioStream |
uint32 | _curFrame |
Common::Timestamp | _audioBuffered |
Video::Bink::BinkAudioTrack::BinkAudioTrack | ( | size_t | index, |
Bink::AudioInfo & | audio | ||
) |
|
private |
Decode an audio block.
Definition at line 1405 of file bink.cpp.
References Sound::floatToInt16Interleave(), Common::intLog2(), Video::Bink::kAudioCodecDCT, and Video::Bink::kAudioCodecRDFT.
|
private |
Decode a DCT'd audio block.
Definition at line 1427 of file bink.cpp.
References Common::BitStream::skip().
|
private |
void Video::Bink::BinkAudioTrack::decodeAudio | ( | Common::SeekableReadStream & | bink, |
const std::vector< VideoFrame > & | frames, | ||
const std::vector< AudioInfo > & | audioTracks, | ||
const Common::Timestamp & | endTime | ||
) |
Decode audio data up to endTime.
Definition at line 1333 of file bink.cpp.
References Common::ScopedPtrBase< T, Deallocator >::get(), Video::Bink::VideoFrame::offset, Common::BitStreamImpl< valueBits, isLE, isMSB2LSB >::pos(), Common::SeekableReadStream::pos(), Common::ReadStream::readUint32LE(), Common::ScopedPtrBase< T, Deallocator >::release(), Common::SeekableReadStream::seek(), Video::Bink::VideoFrame::size, Common::BitStreamImpl< valueBits, isLE, isMSB2LSB >::size(), Common::BitStreamImpl< valueBits, isLE, isMSB2LSB >::skip(), and Common::SeekableReadStream::skip().
|
staticprivate |
|
protected |
|
private |
Definition at line 1390 of file bink.cpp.
References Common::BitStream::getBit(), and Common::BitStream::getBits().
|
private |
Definition at line 1459 of file bink.cpp.
References Common::BitStream::getBit(), Common::BitStream::getBits(), MIN(), and Video::rleLengthTab.
|
private |
|
private |