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

Public Member Functions

 CodebookLibrary (Common::SeekableReadStream &stream)
 
 CodebookLibrary ()
 
 ~CodebookLibrary ()
 
void rebuild (size_t i, Common::BitStreamWriter &bos)
 
void rebuild (Common::BitStream &bis, size_t size, Common::BitStreamWriter &bos)
 
void copy (Common::BitStream &bis, Common::BitStreamWriter &bos)
 

Private Member Functions

Common::SeekableReadStreamgetCodebook (size_t i)
 

Private Attributes

Common::SeekableReadStream_stream
 
size_t _count
 
size_t _offsetOffset
 

Detailed Description

Definition at line 80 of file wwriffvorbis.cpp.

Constructor & Destructor Documentation

◆ CodebookLibrary() [1/2]

Sound::CodebookLibrary::CodebookLibrary ( Common::SeekableReadStream stream)

Definition at line 128 of file wwriffvorbis.cpp.

References _count, _offsetOffset, _stream, Common::ReadStream::readUint32LE(), Common::SeekableReadStream::seek(), and Common::SeekableReadStream::size().

Here is the call graph for this function:

◆ CodebookLibrary() [2/2]

Sound::CodebookLibrary::CodebookLibrary ( )

Definition at line 125 of file wwriffvorbis.cpp.

◆ ~CodebookLibrary()

Sound::CodebookLibrary::~CodebookLibrary ( )
inline

Definition at line 85 of file wwriffvorbis.cpp.

Member Function Documentation

◆ copy()

void Sound::CodebookLibrary::copy ( Common::BitStream bis,
Common::BitStreamWriter bos 
)

Definition at line 236 of file wwriffvorbis.cpp.

References Sound::bookMapType1QuantVals(), Common::BitStream::getBit(), Common::BitStream::getBits(), Common::intLog2(), Common::BitStreamWriter::putBit(), and Common::BitStreamWriter::putBits().

Referenced by Sound::WwRIFFVorbisStream::generateHeaderSetup().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ getCodebook()

Common::SeekableReadStream * Sound::CodebookLibrary::getCodebook ( size_t  i)
private

Definition at line 135 of file wwriffvorbis.cpp.

References _count, _offsetOffset, _stream, Common::ReadStream::readUint32LE(), and Common::SeekableReadStream::seek().

Referenced by rebuild().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ rebuild() [1/2]

void Sound::CodebookLibrary::rebuild ( size_t  i,
Common::BitStreamWriter bos 
)

Definition at line 149 of file wwriffvorbis.cpp.

References getCodebook(), and Common::BitStreamImpl< valueBits, isLE, isMSB2LSB >::size().

Referenced by Sound::WwRIFFVorbisStream::generateHeaderSetup().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ rebuild() [2/2]

void Sound::CodebookLibrary::rebuild ( Common::BitStream bis,
size_t  size,
Common::BitStreamWriter bos 
)

Member Data Documentation

◆ _count

size_t Sound::CodebookLibrary::_count
private

Definition at line 95 of file wwriffvorbis.cpp.

Referenced by CodebookLibrary(), and getCodebook().

◆ _offsetOffset

size_t Sound::CodebookLibrary::_offsetOffset
private

Definition at line 96 of file wwriffvorbis.cpp.

Referenced by CodebookLibrary(), and getCodebook().

◆ _stream

Common::SeekableReadStream* Sound::CodebookLibrary::_stream
private

Definition at line 93 of file wwriffvorbis.cpp.

Referenced by CodebookLibrary(), and getCodebook().


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