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

Audio Namespace Reference

Internal interfaces to the ADPCM decoders. More...

Classes

struct  StreamFileFormat
class  QueuingAudioStreamImpl
class  LimitingAudioStream
 An AudioStream wrapper that cuts off the amount of samples read after a given time length is reached. More...
class  NullAudioStream
 An AudioStream that plays nothing and immediately returns that the endOfStream() has been reached. More...
class  AudioStream
 Generic audio input stream. More...
class  RewindableAudioStream
 A rewindable audio stream. More...
class  LoopingAudioStream
 A looping audio stream. More...
class  SeekableAudioStream
 A seekable audio stream. More...
class  SubLoopingAudioStream
 A looping audio stream, which features looping of a nested part of the stream. More...
class  SubSeekableAudioStream
 A SubSeekableAudioStream provides access to a SeekableAudioStream just in the range [start, end). More...
class  QueuingAudioStream
class  PacketizedAudioStream
 An AudioStream designed to work in terms of packets. More...
class  StatelessPacketizedAudioStream
 A PacketizedAudioStream that works closer to a QueuingAudioStream. More...
struct  audio_3DO_ADP4_PersistentSpace
struct  audio_3DO_SDX2_PersistentSpace
class  Audio3DO_ADP4_Stream
class  Audio3DO_SDX2_Stream
class  AC3Stream
class  PacketizedADPCMStream
class  ADPCMStream
class  Oki_ADPCMStream
class  Ima_ADPCMStream
class  DVI_ADPCMStream
class  Apple_ADPCMStream
class  MSIma_ADPCMStream
class  MS_ADPCMStream
class  DK3_ADPCMStream
class  ASFGUID
class  ASFStream
class  Codec
class  FLACStream
struct  Voice8Header
struct  A8SVXLoader
class  BaseMP3Stream
class  MP3Stream
class  PacketizedMP3Stream
class  SilentAudioStream
 An AudioStream that just returns silent samples and runs infinitely. More...
class  ForcedMonoAudioStream
 An AudioStream wrapper that forces audio to be played in mono. More...
class  QuickTimeAudioStream
 A wrapper around QuickTimeAudioDecoder that implements the SeekableAudioStream API. More...
class  QuickTimeAudioDecoder
class  RawStream
 This is a stream, which allows for playing raw PCM data from a stream. More...
class  PacketizedRawStream
struct  VocFileHeader
struct  VocBlockHeader
class  VorbisStream
class  WMACodec
struct  WMACoefHuffmanParam
 Parameters for Huffman'd WMA coefficient codes. More...
class  XAStream
class  Channel
 Channel used by the default Mixer implementation. More...
class  SoundHandle
 A SoundHandle instances corresponds to a specific sound being played via the mixer. More...
class  Mixer
 The main audio mixer handles mixing of an arbitrary number of audio streams (in the form of AudioStream instances). More...
class  MixerImpl
 The (default) implementation of the ScummVM audio mixing subsystem. More...
class  SimpleRateConverter
 Audio rate converter based on simple resampling. More...
class  LinearRateConverter
 Audio rate converter based on simple linear Interpolation. More...
class  CopyRateConverter
 Simple audio rate converter for the case that the inrate equals the outrate. More...
class  RateConverter
struct  SimpleRateDetails
 Audio rate converter based on simple resampling. More...
struct  LinearRateDetails
 Audio rate converter based on simple linear Interpolation. More...
class  Timestamp
 Timestamps allow specifying points in time and measuring time intervals with a sub-millisecond granularity. More...

Typedefs

typedef int16 st_sample_t
typedef uint16 st_volume_t
typedef uint32 st_size_t
typedef uint32 st_rate_t

Enumerations

enum  { HEADER_SIZE = 7 }
enum  ADPCMType {
  kADPCMOki, kADPCMMSIma, kADPCMMS, kADPCMDVI,
  kADPCMApple, kADPCMDK3
}
enum  RawFlags { FLAG_UNSIGNED = 1 << 0, FLAG_16BITS = 1 << 1, FLAG_LITTLE_ENDIAN = 1 << 2, FLAG_STEREO = 1 << 3 }
 

Various flags which can be bit-ORed and then passed to makeRawStream and some other AudioStream factories to control their behavior.

More...
enum  { kWaveFormatPCM = 1, kWaveFormatMSADPCM = 2, kWaveFormatMSIMAADPCM = 17, kWaveFormatMP3 = 85 }
enum  WaveCompressionType {
  kWavePCM = 0x0001, kWaveMSADPCM = 0x0002, kWaveMSIMAADPCM = 0x0011, kWaveMSIMAADPCM2 = 0x0069,
  kWaveWMAv2 = 0x0161
}
enum  { FRAC_BITS_LOW = 15, FRAC_ONE_LOW = (1L << FRAC_BITS_LOW), FRAC_HALF_LOW = (1L << (FRAC_BITS_LOW-1)) }
 

The default fractional type in frac.h (with 16 fractional bits) limits the rate conversion code to 65536Hz audio: we need to able to handle 96kHz audio, so we use fewer fractional bits in this code.

More...
enum  { ST_SAMPLE_MAX = 0x7fffL, ST_SAMPLE_MIN = (-ST_SAMPLE_MAX - 1L) }
enum  { ST_EOF = -1, ST_SUCCESS = 0 }
enum  { FRAC_BITS_LOW = 15, FRAC_ONE_LOW = (1L << FRAC_BITS_LOW), FRAC_HALF_LOW = (1L << (FRAC_BITS_LOW-1)) }
 

The default fractional type in frac.h (with 16 fractional bits) limits the rate conversion code to 65536Hz audio: we need to able to handle 96kHz audio, so we use fewer fractional bits in this code.

More...

Functions

AudioStreammakeLoopingAudioStream (RewindableAudioStream *stream, uint loops)
 Wrapper functionality to efficiently create a stream, which might be looped.
AudioStreammakeLoopingAudioStream (SeekableAudioStream *stream, Timestamp start, Timestamp end, uint loops)
 Wrapper functionality to efficiently create a stream, which might be looped in a certain interval.
QueuingAudioStreammakeQueuingAudioStream (int rate, bool stereo)
 Factory function for an QueuingAudioStream.
Timestamp convertTimeToStreamPos (const Timestamp &where, int rate, bool isStereo)
 Converts a point in time to a precise sample offset with the given parameters.
AudioStreammakeLimitingAudioStream (AudioStream *parentStream, const Timestamp &length, DisposeAfterUse::Flag disposeAfterUse=DisposeAfterUse::YES)
 Factory function for an AudioStream wrapper that cuts off the amount of samples read after a given time length is reached.
AudioStreammakeNullAudioStream ()
 Create an AudioStream that plays nothing and immediately returns that endOfStream() has been reached.
RewindableAudioStreammake3DO_ADP4AudioStream (Common::SeekableReadStream *stream, uint16 sampleRate, bool stereo, uint32 *audioLengthMSecsPtr=NULL,DisposeAfterUse::Flag disposeAfterUse=DisposeAfterUse::YES, audio_3DO_ADP4_PersistentSpace *persistentSpacePtr=NULL)
 Try to decode 3DO ADP4 data from the given seekable stream and create a SeekableAudioStream from that data.
RewindableAudioStreammake3DO_SDX2AudioStream (Common::SeekableReadStream *stream, uint16 sampleRate, bool stereo, uint32 *audioLengthMSecsPtr=NULL,DisposeAfterUse::Flag disposeAfterUse=DisposeAfterUse::YES, audio_3DO_SDX2_PersistentSpace *persistentSpacePtr=NULL)
 Try to decode 3DO SDX2 data from the given seekable stream and create a SeekableAudioStream from that data.
PacketizedAudioStreammakeAC3Stream (Common::SeekableReadStream &firstPacket, double decibel)
SeekableAudioStreammakeADPCMStream (Common::SeekableReadStream *stream, DisposeAfterUse::Flag disposeAfterUse, uint32 size, ADPCMType type, int rate, int channels, uint32 blockAlign=0)
 Takes an input stream containing ADPCM compressed sound data and creates an RewindableAudioStream from that.
PacketizedAudioStreammakePacketizedADPCMStream (ADPCMType type, int rate, int channels, uint32 blockAlign=0)
 Creates a PacketizedAudioStream that will automatically queue packets as individual AudioStreams like returned by makeADPCMStream.
uint32 readExtended (Common::SeekableReadStream &stream)
RewindableAudioStreammakeAIFFStream (Common::SeekableReadStream *stream, DisposeAfterUse::Flag disposeAfterUse)
 Try to load an AIFF from the given seekable stream and create an AudioStream from that data.
SeekableAudioStreammakeASFStream (Common::SeekableReadStream *stream, DisposeAfterUse::Flag disposeAfterUse)
 Try to load a ASF from the given seekable stream and create a RewindableAudioStream from that data.
SeekableAudioStreammakeFLACStream (Common::SeekableReadStream *stream, DisposeAfterUse::Flag disposeAfterUse)
 Create a new SeekableAudioStream from the FLAC data in the given stream.
AudioStreammake8SVXStream (Common::ReadStream &input, bool loop)
SeekableAudioStreammakeMacSndStream (Common::SeekableReadStream *stream, DisposeAfterUse::Flag disposeAfterUse)
 Try to load a Mac snd resource from the given seekable stream and create a SeekableAudioStream from that data.
static int scaleSample (mad_fixed_t sample)
SeekableAudioStreammakeMP3Stream (Common::SeekableReadStream *stream, DisposeAfterUse::Flag disposeAfterUse)
 Create a new SeekableAudioStream from the MP3 data in the given stream.
PacketizedAudioStreammakePacketizedMP3Stream (Common::SeekableReadStream &firstPacket)
 Create a new PacketizedAudioStream from the first packet in the given stream.
PacketizedAudioStreammakePacketizedMP3Stream (uint channels, uint rate)
 Create a new PacketizedAudioStream for a given number of channels and sample rate.
CodecmakeQDM2Decoder (Common::SeekableReadStream *extraData, DisposeAfterUse::Flag disposeExtraData=DisposeAfterUse::NO)
 Create a new Codec from the QDM2 data in the given stream.
SeekableAudioStreammakeQuickTimeStream (const Common::String &filename)
 Try to load a QuickTime sound file from the given file name and create a SeekableAudioStream from that data.
SeekableAudioStreammakeQuickTimeStream (Common::SeekableReadStream *stream, DisposeAfterUse::Flag disposeAfterUse=DisposeAfterUse::YES)
 Try to load a QuickTime sound file from the given seekable stream and create a SeekableAudioStream from that data.
SeekableAudioStreammakeRawStream (Common::SeekableReadStream *stream, int rate, byte flags, DisposeAfterUse::Flag disposeAfterUse=DisposeAfterUse::YES)
 Creates an audio stream, which plays from the given stream.
SeekableAudioStreammakeRawStream (const byte *buffer, uint32 size, int rate, byte flags, DisposeAfterUse::Flag disposeAfterUse=DisposeAfterUse::YES)
 Creates an audio stream, which plays from the given buffer.
PacketizedAudioStreammakePacketizedRawStream (int rate, byte flags)
 Creates a PacketizedAudioStream that will automatically queue packets as individual AudioStreams like returned by makeRawStream.
static int16 floatToInt16 (float src)
static void floatToInt16Interleave (int16 *dst, const float **src, uint32 length, uint8 channels)
int getSampleRateFromVOCRate (int vocSR)
 Take a sample rate parameter as it occurs in a VOC sound header, and return the corresponding sample frequency.
SeekableAudioStreammakeVOCStream (Common::SeekableReadStream *stream, byte flags, DisposeAfterUse::Flag disposeAfterUse=DisposeAfterUse::NO)
 Try to load a VOC from the given seekable stream and create an AudioStream from that data.
static size_t read_stream_wrap (void *ptr, size_t size, size_t nmemb, void *datasource)
static int seek_stream_wrap (void *datasource, ogg_int64_t offset, int whence)
static int close_stream_wrap (void *datasource)
static long tell_stream_wrap (void *datasource)
SeekableAudioStreammakeVorbisStream (Common::SeekableReadStream *stream, DisposeAfterUse::Flag disposeAfterUse)
 Create a new SeekableAudioStream from the Ogg Vorbis data in the given stream.
bool loadWAVFromStream (Common::SeekableReadStream &stream, int &size, int &rate, byte &flags, uint16 *wavType=0, int *blockAlign=0)
 Try to load a WAVE from the given seekable stream.
SeekableAudioStreammakeWAVStream (Common::SeekableReadStream *stream, DisposeAfterUse::Flag disposeAfterUse)
 Try to load a WAVE from the given seekable stream and create an AudioStream from that data.
static void butterflyFloats (float *v1, float *v2, int len)
static void vectorFMulAdd (float *dst, const float *src0, const float *src1, const float *src2, int len)
static void vectorFMulReverse (float *dst, const float *src0, const float *src1, int len)
RewindableAudioStreammakeXAStream (Common::SeekableReadStream *stream, int rate, DisposeAfterUse::Flag disposeAfterUse=DisposeAfterUse::YES)
 Takes an input stream containing XA ADPCM sound data and creates an RewindableAudioStream from that.
template<bool stereo, bool reverseStereo>
RateConvertermakeRateConverter (st_rate_t inrate, st_rate_t outrate)
RateConvertermakeRateConverter (st_rate_t inrate, st_rate_t outrate, bool stereo, bool reverseStereo)
 Create and return a RateConverter object for the specified input and output rates.
static void clampedAdd (int16 &a, int b)
st_sample_tARM_SimpleRate_M (AudioStream &input, int(*fn)(Audio::AudioStream &, int16 *, int), SimpleRateDetails *sr, st_sample_t *obuf, st_size_t osamp, st_volume_t vol_l, st_volume_t vol_r)
st_sample_tARM_SimpleRate_S (AudioStream &input, int(*fn)(Audio::AudioStream &, int16 *, int), SimpleRateDetails *sr, st_sample_t *obuf, st_size_t osamp, st_volume_t vol_l, st_volume_t vol_r)
st_sample_tARM_SimpleRate_R (AudioStream &input, int(*fn)(Audio::AudioStream &, int16 *, int), SimpleRateDetails *sr, st_sample_t *obuf, st_size_t osamp, st_volume_t vol_l, st_volume_t vol_r)
int SimpleRate_readFudge (Audio::AudioStream &input, int16 *a, int b)
st_sample_tARM_LinearRate_M (AudioStream &input, int(*fn)(Audio::AudioStream &, int16 *, int), LinearRateDetails *lr, st_sample_t *obuf, st_size_t osamp, st_volume_t vol_l, st_volume_t vol_r)
st_sample_tARM_LinearRate_S (AudioStream &input, int(*fn)(Audio::AudioStream &, int16 *, int), LinearRateDetails *lr, st_sample_t *obuf, st_size_t osamp, st_volume_t vol_l, st_volume_t vol_r)
st_sample_tARM_LinearRate_R (AudioStream &input, int(*fn)(Audio::AudioStream &, int16 *, int), LinearRateDetails *lr, st_sample_t *obuf, st_size_t osamp, st_volume_t vol_l, st_volume_t vol_r)
st_sample_tARM_CopyRate_M (st_size_t len, st_sample_t *obuf, st_volume_t vol_l, st_volume_t vol_r, st_sample_t *_buffer)
st_sample_tARM_CopyRate_S (st_size_t len, st_sample_t *obuf, st_volume_t vol_l, st_volume_t vol_r, st_sample_t *_buffer)
st_sample_tARM_CopyRate_R (st_size_t len, st_sample_t *obuf, st_volume_t vol_l, st_volume_t vol_r, st_sample_t *_buffer)

Variables

static const StreamFileFormat STREAM_FILEFORMATS []
static int16 audio_3DO_SDX2_SquareTable [256]
static const int16 okiStepSize [49]
static const int MSADPCMAdaptCoeff1 []
static const int MSADPCMAdaptCoeff2 []
static const int MSADPCMAdaptationTable []
static const uint32 kVersionAIFF = MKTAG('A', 'I', 'F', 'F')
static const uint32 kVersionAIFC = MKTAG('A', 'I', 'F', 'C')
static const uint32 kCodecPCM = MKTAG('N', 'O', 'N', 'E')
static const ASFGUID s_asfHeader = ASFGUID(0x30, 0x26, 0xB2, 0x75, 0x8E, 0x66, 0xCF, 0x11, 0xA6, 0xD9, 0x00, 0xAA, 0x00, 0x62, 0xCE, 0x6C)
static const ASFGUID s_asfFileHeader = ASFGUID(0xA1, 0xDC, 0xAB, 0x8C, 0x47, 0xA9, 0xCF, 0x11, 0x8E, 0xE4, 0x00, 0xC0, 0x0C, 0x20, 0x53, 0x65)
static const ASFGUID s_asfHead1 = ASFGUID(0xb5, 0x03, 0xbf, 0x5f, 0x2E, 0xA9, 0xCF, 0x11, 0x8e, 0xe3, 0x00, 0xc0, 0x0c, 0x20, 0x53, 0x65)
static const ASFGUID s_asfComment = ASFGUID(0x33, 0x26, 0xb2, 0x75, 0x8E, 0x66, 0xCF, 0x11, 0xa6, 0xd9, 0x00, 0xaa, 0x00, 0x62, 0xce, 0x6c)
static const ASFGUID s_asfStreamHeader = ASFGUID(0x91, 0x07, 0xDC, 0xB7, 0xB7, 0xA9, 0xCF, 0x11, 0x8E, 0xE6, 0x00, 0xC0, 0x0C, 0x20, 0x53, 0x65)
static const ASFGUID s_asfCodecComment = ASFGUID(0x40, 0x52, 0xD1, 0x86, 0x1D, 0x31, 0xD0, 0x11, 0xA3, 0xA4, 0x00, 0xA0, 0xC9, 0x03, 0x48, 0xF6)
static const ASFGUID s_asfDataHeader = ASFGUID(0x36, 0x26, 0xb2, 0x75, 0x8E, 0x66, 0xCF, 0x11, 0xa6, 0xd9, 0x00, 0xaa, 0x00, 0x62, 0xce, 0x6c)
static const ASFGUID s_asfAudioStream = ASFGUID(0x40, 0x9E, 0x69, 0xF8, 0x4D, 0x5B, 0xCF, 0x11, 0xA8, 0xFD, 0x00, 0x80, 0x5F, 0x5C, 0x44, 0x2B)
static const ASFGUID s_asfExtendedHeader = ASFGUID(0x40, 0xA4, 0xD0, 0xD2, 0x07, 0xE3, 0xD2, 0x11, 0x97, 0xF0, 0x00, 0xA0, 0xC9, 0x5E, 0xA8, 0x50)
static const ASFGUID s_asfStreamBitRate = ASFGUID(0xce, 0x75, 0xf8, 0x7b, 0x8d, 0x46, 0xd1, 0x11, 0x8d, 0x82, 0x00, 0x60, 0x97, 0xc9, 0xa2, 0xb2)
static const uint MAX_OUTPUT_CHANNELS = 2
static const uint16 vlc_tab_level_huffcodes [24]
 VLC TABLES.
static const byte vlc_tab_level_huffbits [24]
static const uint16 vlc_tab_diff_huffcodes [37]
static const byte vlc_tab_diff_huffbits [37]
static const byte vlc_tab_run_huffcodes [6]
static const byte vlc_tab_run_huffbits [6]
static const uint16 vlc_tab_tone_level_idx_hi1_huffcodes [20]
static const byte vlc_tab_tone_level_idx_hi1_huffbits [20]
static const uint16 vlc_tab_tone_level_idx_mid_huffcodes [24]
static const byte vlc_tab_tone_level_idx_mid_huffbits [24]
static const uint16 vlc_tab_tone_level_idx_hi2_huffcodes [24]
static const byte vlc_tab_tone_level_idx_hi2_huffbits [24]
static const byte vlc_tab_type30_huffcodes [9]
static const byte vlc_tab_type30_huffbits [9]
static const byte vlc_tab_type34_huffcodes [10]
static const byte vlc_tab_type34_huffbits [10]
static const uint16 vlc_tab_fft_tone_offset_0_huffcodes [23]
static const byte vlc_tab_fft_tone_offset_0_huffbits [23]
static const uint16 vlc_tab_fft_tone_offset_1_huffcodes [28]
static const byte vlc_tab_fft_tone_offset_1_huffbits [28]
static const uint16 vlc_tab_fft_tone_offset_2_huffcodes [32]
static const byte vlc_tab_fft_tone_offset_2_huffbits [32]
static const uint16 vlc_tab_fft_tone_offset_3_huffcodes [35]
static const byte vlc_tab_fft_tone_offset_3_huffbits [35]
static const uint16 vlc_tab_fft_tone_offset_4_huffcodes [38]
static const byte vlc_tab_fft_tone_offset_4_huffbits [38]
static const uint16 fft_level_exp_alt_huffcodes [28]
 FFT TABLES.
static const byte fft_level_exp_alt_huffbits [28]
static const uint16 fft_level_exp_huffcodes [20]
static const byte fft_level_exp_huffbits [20]
static const byte fft_stereo_exp_huffcodes [7]
static const byte fft_stereo_exp_huffbits [7]
static const byte fft_stereo_phase_huffcodes [9]
static const byte fft_stereo_phase_huffbits [9]
static const int fft_cutoff_index_table [4][2]
static const int16 fft_level_index_table [256]
static const byte last_coeff [3]
static const byte coeff_per_sb_for_avg [3][30]
static const uint32 dequant_table [3][10][30]
static const byte coeff_per_sb_for_dequant [3][30]
static const int8 tone_level_idx_offset_table [30][4]
static const int8 coding_method_table [5][30]
static const int vlc_stage3_values [60]
static const float fft_tone_sample_table [4][16][5]
static const float fft_tone_level_table [2][64]
static const float fft_tone_envelope_table [4][31]
static const float sb_noise_attenuation [32]
static const byte fft_subpackets [32]
static const float dequant_1bit [2][3]
static const float type30_dequant [8]
static const float type34_delta [10]
struct Audio::VocFileHeader PACKED_STRUCT
static ov_callbacks g_stream_wrap
static const float powTab []
const uint16 wmaCriticalFreqs [25]
static const uint8 exponentBand22050 [3][25]
static const uint8 exponentBand32000 [3][25]
static const uint8 exponentBand44100 [3][25]
static const uint32 coef0Huffcodes [666]
static const uint8 coef0Huffbits [666]
static const uint32 coef1Huffcodes [555]
static const uint8 coef1Huffbits [555]
static const uint32 coef2Huffcodes [1336]
static const uint8 coef2Huffbits [1336]
static const uint32 coef3Huffcodes [1072]
static const uint8 coef3Huffbits [1072]
static const uint32 coef4Huffcodes [476]
static const uint8 coef4Huffbits [476]
static const uint32 coef5Huffcodes [435]
static const uint8 coef5Huffbits [435]
static const uint16 levels0 [60]
static const uint16 levels1 [40]
static const uint16 levels2 [340]
static const uint16 levels3 [180]
static const uint16 levels4 [70]
static const uint16 levels5 [40]
static const WMACoefHuffmanParam coefHuffmanParam [6]
const uint32 hgainHuffCodes [37]
const uint8 hgainHuffBits [37]
const uint32 scaleHuffCodes [121]
const uint8 scaleHuffBits [121]
static const int kLSPCoefCount = 10
const float lspCodebook [kLSPCoefCount][16]
static const double s_xaDataTable [5][2]

Detailed Description

Internal interfaces to the ADPCM decoders.

These can be used to make custom ADPCM decoder subclasses, or to at least share some common data tables between various ADPCM decoder implementations.


Typedef Documentation

Definition at line 35 of file rate.h.

Definition at line 30 of file rate.h.

Definition at line 34 of file rate.h.

Definition at line 33 of file rate.h.


Enumeration Type Documentation

anonymous enum
Enumerator:
kWaveFormatPCM 
kWaveFormatMSADPCM 
kWaveFormatMSIMAADPCM 
kWaveFormatMP3 

Definition at line 36 of file wave.cpp.

anonymous enum

The default fractional type in frac.h (with 16 fractional bits) limits the rate conversion code to 65536Hz audio: we need to able to handle 96kHz audio, so we use fewer fractional bits in this code.

Enumerator:
FRAC_BITS_LOW 
FRAC_ONE_LOW 
FRAC_HALF_LOW 

Definition at line 54 of file rate.cpp.

anonymous enum
Enumerator:
ST_SAMPLE_MAX 
ST_SAMPLE_MIN 

Definition at line 38 of file rate.h.

anonymous enum
Enumerator:
ST_EOF 
ST_SUCCESS 

Definition at line 43 of file rate.h.

anonymous enum

The default fractional type in frac.h (with 16 fractional bits) limits the rate conversion code to 65536Hz audio: we need to able to handle 96kHz audio, so we use fewer fractional bits in this code.

Enumerator:
FRAC_BITS_LOW 
FRAC_ONE_LOW 
FRAC_HALF_LOW 

Definition at line 76 of file rate_arm.cpp.

anonymous enum
Enumerator:
HEADER_SIZE 

Definition at line 77 of file ac3.cpp.

Enumerator:
kADPCMOki 
kADPCMMSIma 
kADPCMMS 
kADPCMDVI 
kADPCMApple 
kADPCMDK3 

Definition at line 56 of file adpcm.h.

Various flags which can be bit-ORed and then passed to makeRawStream and some other AudioStream factories to control their behavior.

Engine authors are advised not to rely on a certain value or order of these flags (in particular, do not store them verbatim in savestates).

Enumerator:
FLAG_UNSIGNED 

unsigned samples (default: signed)

FLAG_16BITS 

sound is 16 bits wide (default: 8bit)

FLAG_LITTLE_ENDIAN 

samples are little endian (default: big endian)

FLAG_STEREO 

sound is in stereo (default: mono)

Definition at line 50 of file raw.h.

Enumerator:
kWavePCM 
kWaveMSADPCM 
kWaveMSIMAADPCM 
kWaveMSIMAADPCM2 
kWaveWMAv2 

Definition at line 28 of file wave_types.h.


Function Documentation

st_sample_t* Audio::ARM_CopyRate_M ( st_size_t  len,
st_sample_t *  obuf,
st_volume_t  vol_l,
st_volume_t  vol_r,
st_sample_t *  _buffer 
)
st_sample_t* Audio::ARM_CopyRate_R ( st_size_t  len,
st_sample_t *  obuf,
st_volume_t  vol_l,
st_volume_t  vol_r,
st_sample_t *  _buffer 
)
st_sample_t* Audio::ARM_CopyRate_S ( st_size_t  len,
st_sample_t *  obuf,
st_volume_t  vol_l,
st_volume_t  vol_r,
st_sample_t *  _buffer 
)
st_sample_t* Audio::ARM_LinearRate_M ( AudioStream &  input,
int(*)(Audio::AudioStream &, int16 *, int)  fn,
LinearRateDetails *  lr,
st_sample_t *  obuf,
st_size_t  osamp,
st_volume_t  vol_l,
st_volume_t  vol_r 
)
st_sample_t* Audio::ARM_LinearRate_R ( AudioStream &  input,
int(*)(Audio::AudioStream &, int16 *, int)  fn,
LinearRateDetails *  lr,
st_sample_t *  obuf,
st_size_t  osamp,
st_volume_t  vol_l,
st_volume_t  vol_r 
)
st_sample_t* Audio::ARM_LinearRate_S ( AudioStream &  input,
int(*)(Audio::AudioStream &, int16 *, int)  fn,
LinearRateDetails *  lr,
st_sample_t *  obuf,
st_size_t  osamp,
st_volume_t  vol_l,
st_volume_t  vol_r 
)
st_sample_t* Audio::ARM_SimpleRate_M ( AudioStream &  input,
int(*)(Audio::AudioStream &, int16 *, int)  fn,
SimpleRateDetails *  sr,
st_sample_t *  obuf,
st_size_t  osamp,
st_volume_t  vol_l,
st_volume_t  vol_r 
)
st_sample_t* Audio::ARM_SimpleRate_R ( AudioStream &  input,
int(*)(Audio::AudioStream &, int16 *, int)  fn,
SimpleRateDetails *  sr,
st_sample_t *  obuf,
st_size_t  osamp,
st_volume_t  vol_l,
st_volume_t  vol_r 
)
st_sample_t* Audio::ARM_SimpleRate_S ( AudioStream &  input,
int(*)(Audio::AudioStream &, int16 *, int)  fn,
SimpleRateDetails *  sr,
st_sample_t *  obuf,
st_size_t  osamp,
st_volume_t  vol_l,
st_volume_t  vol_r 
)
static void Audio::butterflyFloats ( float *  v1,
float *  v2,
int  len 
) [inline, static]

Definition at line 43 of file wma.cpp.

static void Audio::clampedAdd ( int16 a,
int  b 
) [inline, static]

Definition at line 48 of file rate.h.

static int Audio::close_stream_wrap ( void *  datasource  )  [static]

Definition at line 70 of file vorbis.cpp.

Timestamp Audio::convertTimeToStreamPos ( const Timestamp &  where,
int  rate,
bool  isStereo 
)

Converts a point in time to a precise sample offset with the given parameters.

Parameters:
where Point in time.
rate Rate of the stream.
isStereo Is the stream a stereo stream?
static int16 Audio::floatToInt16 ( float  src  )  [inline, static]

Definition at line 32 of file util.h.

static void Audio::floatToInt16Interleave ( int16 dst,
const float **  src,
uint32  length,
uint8  channels 
) [inline, static]

Definition at line 37 of file util.h.

int Audio::getSampleRateFromVOCRate ( int  vocSR  ) 

Take a sample rate parameter as it occurs in a VOC sound header, and return the corresponding sample frequency.

This method has special cases for the standard rates of 11025 and 22050 kHz, which due to limitations of the format, cannot be encoded exactly in a VOC file. As a consequence, many game files have sound data sampled with those rates, but the VOC marks them incorrectly as 11111 or 22222 kHz. This code works around that and "unrounds" the sampling rates.

bool Audio::loadWAVFromStream ( Common::SeekableReadStream stream,
int &  size,
int &  rate,
byte flags,
uint16 wavType = 0,
int *  blockAlign = 0 
)

Try to load a WAVE from the given seekable stream.

Returns true if successful. In that case, the stream's seek position will be set to the start of the audio data, and size, rate and flags contain information necessary for playback. Currently this function supports uncompressed raw PCM data, MS IMA ADPCM and MS ADPCM (uses makeADPCMStream internally).

RewindableAudioStream * Audio::make3DO_ADP4AudioStream ( Common::SeekableReadStream stream,
uint16  sampleRate,
bool  stereo,
uint32 audioLengthMSecsPtr = NULL,
DisposeAfterUse::Flag  disposeAfterUse = DisposeAfterUse::YES,
audio_3DO_ADP4_PersistentSpace *  persistentSpacePtr = NULL 
)

Try to decode 3DO ADP4 data from the given seekable stream and create a SeekableAudioStream from that data.

Parameters:
stream the SeekableReadStream from which to read the 3DO SDX2 data sample rate if it's stereo or mono pointer to a uint32 variable, that is supposed to get the length of the audio in milliseconds disposeAfterUse whether to delete the stream after use pointer to the persistent space structure
Returns:
a new SeekableAudioStream, or NULL, if an error occurred
RewindableAudioStream * Audio::make3DO_SDX2AudioStream ( Common::SeekableReadStream stream,
uint16  sampleRate,
bool  stereo,
uint32 audioLengthMSecsPtr = NULL,
DisposeAfterUse::Flag  disposeAfterUse = DisposeAfterUse::YES,
audio_3DO_SDX2_PersistentSpace *  persistentSpacePtr = NULL 
)

Try to decode 3DO SDX2 data from the given seekable stream and create a SeekableAudioStream from that data.

Parameters:
stream the SeekableReadStream from which to read the 3DO SDX2 data sample rate if it's stereo or mono pointer to a uint32 variable, that is supposed to get the length of the audio in milliseconds disposeAfterUse whether to delete the stream after use pointer to the persistent space structure
Returns:
a new SeekableAudioStream, or NULL, if an error occurred
AudioStream * Audio::make8SVXStream ( Common::ReadStream input,
bool  loop 
)
PacketizedAudioStream* Audio::makeAC3Stream ( Common::SeekableReadStream firstPacket,
double  decibel 
)

Definition at line 195 of file ac3.cpp.

SeekableAudioStream * Audio::makeADPCMStream ( Common::SeekableReadStream stream,
DisposeAfterUse::Flag  disposeAfterUse,
uint32  size,
ADPCMType  type,
int  rate,
int  channels,
uint32  blockAlign = 0 
)

Takes an input stream containing ADPCM compressed sound data and creates an RewindableAudioStream from that.

Parameters:
stream the SeekableReadStream from which to read the ADPCM data
disposeAfterUse whether to delete the stream after use
size how many bytes to read from the stream (0 = all)
type the compression type used
rate the sampling rate
channels the number of channels
blockAlign block alignment ???
Returns:
a new RewindableAudioStream, or NULL, if an error occurred
RewindableAudioStream * Audio::makeAIFFStream ( Common::SeekableReadStream stream,
DisposeAfterUse::Flag  disposeAfterUse 
)

Try to load an AIFF from the given seekable stream and create an AudioStream from that data.

Parameters:
stream the SeekableReadStream from which to read the AIFF data
disposeAfterUse whether to delete the stream after use
Returns:
a new SeekableAudioStream, or NULL, if an error occurred
SeekableAudioStream * Audio::makeASFStream ( Common::SeekableReadStream stream,
DisposeAfterUse::Flag  disposeAfterUse 
)

Try to load a ASF from the given seekable stream and create a RewindableAudioStream from that data.

Parameters:
stream The SeekableReadStream from which to read the ASF data.
disposeAfterUse Whether to delete the stream after use.
Returns:
A new SeekableAudioStream, or 0, if an error occured.
SeekableAudioStream * Audio::makeFLACStream ( Common::SeekableReadStream stream,
DisposeAfterUse::Flag  disposeAfterUse 
)

Create a new SeekableAudioStream from the FLAC data in the given stream.

Allows for seeking (which is why we require a SeekableReadStream).

Parameters:
stream the SeekableReadStream from which to read the FLAC data
disposeAfterUse whether to delete the stream after use
Returns:
a new SeekableAudioStream, or NULL, if an error occurred
AudioStream * Audio::makeLimitingAudioStream ( AudioStream *  parentStream,
const Timestamp &  length,
DisposeAfterUse::Flag  disposeAfterUse = DisposeAfterUse::YES 
)

Factory function for an AudioStream wrapper that cuts off the amount of samples read after a given time length is reached.

Parameters:
parentStream The stream to limit
length The time length to limit the stream to
disposeAfterUse Whether the parent stream object should be destroyed on destruction of the returned stream
AudioStream * Audio::makeLoopingAudioStream ( SeekableAudioStream *  stream,
Timestamp  start,
Timestamp  end,
uint  loops 
)

Wrapper functionality to efficiently create a stream, which might be looped in a certain interval.

This automatically starts the stream at time "start"!

Note that this function does not return a LoopingAudioStream, because it does not create one when the loop count is "1". This allows to keep the runtime overhead down, when the code does not require any functionality only offered by LoopingAudioStream.

Parameters:
stream Stream to loop (will be automatically destroyed, when the looping is done)
start Starttime of the stream interval to be looped
end End of the stream interval to be looped (a zero time, means till end)
loops How often to loop (0 = infinite)
Returns:
A new AudioStream, which offers the desired functionality.
AudioStream * Audio::makeLoopingAudioStream ( RewindableAudioStream *  stream,
uint  loops 
)

Wrapper functionality to efficiently create a stream, which might be looped.

Note that this function does not return a LoopingAudioStream, because it does not create one when the loop count is "1". This allows to keep the runtime overhead down, when the code does not require any functionality only offered by LoopingAudioStream.

Parameters:
stream Stream to loop (will be automatically destroyed, when the looping is done)
loops How often to loop (0 = infinite)
Returns:
A new AudioStream, which offers the desired functionality.
SeekableAudioStream * Audio::makeMacSndStream ( Common::SeekableReadStream stream,
DisposeAfterUse::Flag  disposeAfterUse 
)

Try to load a Mac snd resource from the given seekable stream and create a SeekableAudioStream from that data.

Parameters:
stream the SeekableReadStream from which to read the snd data
disposeAfterUse whether to delete the stream after use
Returns:
a new SeekableAudioStream, or NULL, if an error occurred
SeekableAudioStream * Audio::makeMP3Stream ( Common::SeekableReadStream stream,
DisposeAfterUse::Flag  disposeAfterUse 
)

Create a new SeekableAudioStream from the MP3 data in the given stream.

Allows for seeking (which is why we require a SeekableReadStream).

Parameters:
stream the SeekableReadStream from which to read the MP3 data
disposeAfterUse whether to delete the stream after use
Returns:
a new SeekableAudioStream, or NULL, if an error occurred
AudioStream * Audio::makeNullAudioStream (  ) 

Create an AudioStream that plays nothing and immediately returns that endOfStream() has been reached.

PacketizedAudioStream * Audio::makePacketizedADPCMStream ( ADPCMType  type,
int  rate,
int  channels,
uint32  blockAlign = 0 
)

Creates a PacketizedAudioStream that will automatically queue packets as individual AudioStreams like returned by makeADPCMStream.

Due to the ADPCM types not necessarily supporting stateless streaming, OKI and DVI are not supported by this function and will return NULL.

Parameters:
type the compression type used
rate the sampling rate
channels the number of channels
blockAlign block alignment ???
Returns:
The new PacketizedAudioStream or NULL, if the type isn't supported.
PacketizedAudioStream * Audio::makePacketizedMP3Stream ( Common::SeekableReadStream firstPacket  ) 

Create a new PacketizedAudioStream from the first packet in the given stream.

It does not own the packet and must be queued again later.

Parameters:
firstPacket the SeekableReadStream from which to read the MP3 data
Returns:
a new PacketizedAudioStream
PacketizedAudioStream * Audio::makePacketizedMP3Stream ( uint  channels,
uint  rate 
)

Create a new PacketizedAudioStream for a given number of channels and sample rate.

Parameters:
firstPacket the SeekableReadStream from which to read the MP3 data
Returns:
a new PacketizedAudioStream
PacketizedAudioStream * Audio::makePacketizedRawStream ( int  rate,
byte  flags 
)

Creates a PacketizedAudioStream that will automatically queue packets as individual AudioStreams like returned by makeRawStream.

Parameters:
rate Rate of the sound data.
flags Audio flags combination.
See also:
RawFlags
Returns:
The new PacketizedAudioStream.
Codec* Audio::makeQDM2Decoder ( Common::SeekableReadStream extraData,
DisposeAfterUse::Flag  disposeExtraData = DisposeAfterUse::NO 
)

Create a new Codec from the QDM2 data in the given stream.

Parameters:
extraData the QuickTime extra data stream
disposeExtraData the QuickTime extra data stream
Returns:
a new Codec, or NULL, if an error occurred
QueuingAudioStream * Audio::makeQueuingAudioStream ( int  rate,
bool  stereo 
)

Factory function for an QueuingAudioStream.

SeekableAudioStream * Audio::makeQuickTimeStream ( const Common::String filename  ) 

Try to load a QuickTime sound file from the given file name and create a SeekableAudioStream from that data.

Parameters:
filename the filename of the file from which to read the data
Returns:
a new SeekableAudioStream, or NULL, if an error occurred
SeekableAudioStream * Audio::makeQuickTimeStream ( Common::SeekableReadStream stream,
DisposeAfterUse::Flag  disposeAfterUse = DisposeAfterUse::YES 
)

Try to load a QuickTime sound file from the given seekable stream and create a SeekableAudioStream from that data.

Parameters:
stream the SeekableReadStream from which to read the data
disposeAfterUse whether to delete the stream after use
Returns:
a new SeekableAudioStream, or NULL, if an error occurred
RateConverter * Audio::makeRateConverter ( st_rate_t  inrate,
st_rate_t  outrate,
bool  stereo,
bool  reverseStereo = false 
)

Create and return a RateConverter object for the specified input and output rates.

Definition at line 450 of file rate_arm.cpp.

template<bool stereo, bool reverseStereo>
RateConverter* Audio::makeRateConverter ( st_rate_t  inrate,
st_rate_t  outrate 
)

Definition at line 344 of file rate.cpp.

SeekableAudioStream * Audio::makeRawStream ( Common::SeekableReadStream stream,
int  rate,
byte  flags,
DisposeAfterUse::Flag  disposeAfterUse = DisposeAfterUse::YES 
)

Creates an audio stream, which plays from the given stream.

Parameters:
stream Stream object to play from.
rate Rate of the sound data.
flags Audio flags combination.
See also:
RawFlags
Parameters:
disposeAfterUse Whether to delete the stream after use.
Returns:
The new SeekableAudioStream (or 0 on failure).
SeekableAudioStream * Audio::makeRawStream ( const byte buffer,
uint32  size,
int  rate,
byte  flags,
DisposeAfterUse::Flag  disposeAfterUse = DisposeAfterUse::YES 
)

Creates an audio stream, which plays from the given buffer.

Parameters:
buffer Buffer to play from.
size Size of the buffer in bytes.
rate Rate of the sound data.
flags Audio flags combination.
See also:
RawFlags
Parameters:
disposeAfterUse Whether to free the buffer after use (with free!).
Returns:
The new SeekableAudioStream (or 0 on failure).
SeekableAudioStream * Audio::makeVOCStream ( Common::SeekableReadStream stream,
byte  flags,
DisposeAfterUse::Flag  disposeAfterUse = DisposeAfterUse::NO 
)

Try to load a VOC from the given seekable stream and create an AudioStream from that data.

Currently this function only supports uncompressed raw PCM data.

This does not use any of the looping features of VOC files!

SeekableAudioStream * Audio::makeVorbisStream ( Common::SeekableReadStream stream,
DisposeAfterUse::Flag  disposeAfterUse 
)

Create a new SeekableAudioStream from the Ogg Vorbis data in the given stream.

Allows for seeking (which is why we require a SeekableReadStream).

Parameters:
stream the SeekableReadStream from which to read the Ogg Vorbis data
disposeAfterUse whether to delete the stream after use
Returns:
a new SeekableAudioStream, or NULL, if an error occurred
SeekableAudioStream * Audio::makeWAVStream ( Common::SeekableReadStream stream,
DisposeAfterUse::Flag  disposeAfterUse 
)

Try to load a WAVE from the given seekable stream and create an AudioStream from that data.

Currently this function supports uncompressed raw PCM data, MS IMA ADPCM and MS ADPCM (uses makeADPCMStream internally).

This function uses loadWAVFromStream() internally.

Parameters:
stream the SeekableReadStream from which to read the WAVE data
disposeAfterUse whether to delete the stream after use
Returns:
a new SeekableAudioStream, or NULL, if an error occurred
RewindableAudioStream * Audio::makeXAStream ( Common::SeekableReadStream stream,
int  rate,
DisposeAfterUse::Flag  disposeAfterUse = DisposeAfterUse::YES 
)

Takes an input stream containing XA ADPCM sound data and creates an RewindableAudioStream from that.

Parameters:
stream the SeekableReadStream from which to read the XA ADPCM data
rate the sampling rate
disposeAfterUse whether to delete the stream after use.
Returns:
a new RewindableAudioStream, or NULL, if an error occurred
static size_t Audio::read_stream_wrap ( void *  ptr,
size_t  size,
size_t  nmemb,
void *  datasource 
) [static]

Definition at line 56 of file vorbis.cpp.

uint32 Audio::readExtended ( Common::SeekableReadStream stream  ) 

Definition at line 43 of file aiff.cpp.

static int Audio::scaleSample ( mad_fixed_t  sample  )  [inline, static]

Definition at line 293 of file mp3.cpp.

static int Audio::seek_stream_wrap ( void *  datasource,
ogg_int64_t  offset,
int  whence 
) [static]

Definition at line 64 of file vorbis.cpp.

int Audio::SimpleRate_readFudge ( Audio::AudioStream input,
int16 a,
int  b 
)

Definition at line 173 of file rate_arm.cpp.

static long Audio::tell_stream_wrap ( void *  datasource  )  [static]

Definition at line 75 of file vorbis.cpp.

static void Audio::vectorFMulAdd ( float *  dst,
const float *  src0,
const float *  src1,
const float *  src2,
int  len 
) [inline, static]

Definition at line 52 of file wma.cpp.

static void Audio::vectorFMulReverse ( float *  dst,
const float *  src0,
const float *  src1,
int  len 
) [inline, static]

Definition at line 58 of file wma.cpp.


Variable Documentation

Initial value:
 {
    -32768,-32258,-31752,-31250,-30752,-30258,-29768,-29282,-28800,-28322,
    -27848,-27378,-26912,-26450,-25992,-25538,-25088,-24642,-24200,-23762,
    -23328,-22898,-22472,-22050,-21632,-21218,-20808,-20402,-20000,-19602,
    -19208,-18818,-18432,-18050,-17672,-17298,-16928,-16562,-16200,-15842,
    -15488,-15138,-14792,-14450,-14112,-13778,-13448,-13122,-12800,-12482,
    -12168,-11858,-11552,-11250,-10952,-10658,-10368,-10082, -9800, -9522,
     -9248, -8978, -8712, -8450, -8192, -7938, -7688, -7442, -7200, -6962,
     -6728, -6498, -6272, -6050, -5832, -5618, -5408, -5202, -5000, -4802,
     -4608, -4418, -4232, -4050, -3872, -3698, -3528, -3362, -3200, -3042,
     -2888, -2738, -2592, -2450, -2312, -2178, -2048, -1922, -1800, -1682,
     -1568, -1458, -1352, -1250, -1152, -1058,  -968,  -882,  -800,  -722,
      -648,  -578,  -512,  -450,  -392,  -338,  -288,  -242,  -200,  -162,
      -128,   -98,   -72,   -50,   -32,   -18,    -8,    -2,     0,     2,
         8,    18,    32,    50,    72,    98,   128,   162,   200,   242,
       288,   338,   392,   450,   512,   578,   648,   722,   800,   882,
       968,  1058,  1152,  1250,  1352,  1458,  1568,  1682,  1800,  1922,
      2048,  2178,  2312,  2450,  2592,  2738,  2888,  3042,  3200,  3362,
      3528,  3698,  3872,  4050,  4232,  4418,  4608,  4802,  5000,  5202,
      5408,  5618,  5832,  6050,  6272,  6498,  6728,  6962,  7200,  7442,
      7688,  7938,  8192,  8450,  8712,  8978,  9248,  9522,  9800, 10082,
     10368, 10658, 10952, 11250, 11552, 11858, 12168, 12482, 12800, 13122,
     13448, 13778, 14112, 14450, 14792, 15138, 15488, 15842, 16200, 16562,
     16928, 17298, 17672, 18050, 18432, 18818, 19208, 19602, 20000, 20402,
     20808, 21218, 21632, 22050, 22472, 22898, 23328, 23762, 24200, 24642,
     25088, 25538, 25992, 26450, 26912, 27378, 27848, 28322, 28800, 29282,
     29768, 30258, 30752, 31250, 31752, 32258
}

Definition at line 169 of file 3do.cpp.

const int8 Audio::coding_method_table[5][30] [static]
Initial value:
 {
    { 34, 30, 24, 24, 16, 16, 16, 16, 10, 10, 10, 10, 10, 10, 10,
      10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10
    },
    { 34, 30, 24, 24, 16, 16, 16, 16, 10, 10, 10, 10, 10, 10, 10,
      10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10
    },
    { 34, 30, 30, 30, 24, 24, 16, 16, 16, 16, 16, 16, 10, 10, 10,
      10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10
    },
    { 34, 34, 30, 30, 24, 24, 24, 24, 16, 16, 16, 16, 16, 16, 16,
      16, 16, 16, 16, 16, 16, 16, 10, 10, 10, 10, 10, 10, 10, 10
    },
    { 34, 34, 30, 30, 30, 30, 30, 30, 24, 24, 24, 24, 24, 24, 24,
      24, 24, 24, 24, 24, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16
    },
}

Definition at line 337 of file qdm2data.h.

const uint8 Audio::coef0Huffbits[666] [static]

Definition at line 145 of file wmadata.h.

const uint32 Audio::coef0Huffcodes[666] [static]

Definition at line 58 of file wmadata.h.

const uint8 Audio::coef1Huffbits[555] [static]

Definition at line 305 of file wmadata.h.

const uint32 Audio::coef1Huffcodes[555] [static]

Definition at line 232 of file wmadata.h.

const uint8 Audio::coef2Huffbits[1336] [static]

Definition at line 548 of file wmadata.h.

const uint32 Audio::coef2Huffcodes[1336] [static]

Definition at line 378 of file wmadata.h.

const uint8 Audio::coef3Huffbits[1072] [static]

Definition at line 855 of file wmadata.h.

const uint32 Audio::coef3Huffcodes[1072] [static]

Definition at line 718 of file wmadata.h.

const uint8 Audio::coef4Huffbits[476] [static]

Definition at line 1055 of file wmadata.h.

const uint32 Audio::coef4Huffcodes[476] [static]

Definition at line 992 of file wmadata.h.

const uint8 Audio::coef5Huffbits[435] [static]

Definition at line 1176 of file wmadata.h.

const uint32 Audio::coef5Huffcodes[435] [static]

Definition at line 1118 of file wmadata.h.

const byte Audio::coeff_per_sb_for_avg[3][30] [static]
Initial value:
 {
    { 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3 },
    { 0, 1, 2, 2, 3, 3, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6 },
    { 0, 1, 2, 3, 4, 4, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 9 }
}

Definition at line 256 of file qdm2data.h.

const byte Audio::coeff_per_sb_for_dequant[3][30] [static]
Initial value:
 {
    { 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3 },
    { 0, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6 },
    { 0, 1, 2, 3, 4, 4, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9 }
}

Definition at line 295 of file qdm2data.h.

const float Audio::dequant_1bit[2][3] [static]
Initial value:
 {
    {-0.920000f, 0.000000f, 0.920000f },
    {-0.890000f, 0.000000f, 0.890000f }
}

Definition at line 511 of file qdm2data.h.

const uint32 Audio::dequant_table[3][10][30] [static]

Definition at line 262 of file qdm2data.h.

const uint8 Audio::exponentBand22050[3][25] [static]
Initial value:
 {
    { 10, 4, 8, 4, 8, 8, 12, 20, 24, 24, 16 },
    { 14, 4, 8, 8, 4, 12, 12, 16, 24, 16, 20, 24, 32, 40, 36 },
    { 23, 4, 4, 4, 8, 4, 4, 8, 8, 8, 8, 8, 12, 12, 16, 16, 24, 24, 32, 44, 48, 60, 84, 72 }
}

Definition at line 40 of file wmadata.h.

const uint8 Audio::exponentBand32000[3][25] [static]
Initial value:
 {
    { 11, 4, 4, 8, 4, 4, 12, 16, 24, 20, 28, 4 },
    { 15, 4, 8, 4, 4, 8, 8, 16, 20, 12, 20, 20, 28, 40, 56, 8 },
    { 16, 8, 4, 8, 8, 12, 16, 20, 24, 40, 32, 32, 44, 56, 80, 112, 16 }
}

Definition at line 46 of file wmadata.h.

const uint8 Audio::exponentBand44100[3][25] [static]
Initial value:
 {
    { 12,  4,   4,   4,   4,   4,   8,   8,   8,  12,  16,  20,  36 },
    { 15,  4,   8,   4,   8,   8,   4,   8,   8,  12,  12,  12,  24,  28,  40,  76 },
    { 17,  4,   8,   8,   4,  12,  12,   8,   8,  24,  16,  20,  24,  32,  40,  60,  80, 152 }
}

Definition at line 52 of file wmadata.h.

const int Audio::fft_cutoff_index_table[4][2] [static]
Initial value:
 {
    { 1, 2 }, {-1, 0 }, {-1,-2 }, { 0, 0 }
}

Definition at line 229 of file qdm2data.h.

Initial value:
 {
    13, 7, 8, 9, 10, 10, 10, 10, 10, 9, 8, 7, 6, 5, 4, 3,
    3, 2, 3, 3, 4, 5, 7, 8, 9, 11, 12, 13
}

Definition at line 195 of file qdm2data.h.

Initial value:
 {
    0x1ec6, 0x0006, 0x00c2, 0x0142, 0x0242, 0x0246, 0x00c6, 0x0046,
    0x0042, 0x0146, 0x00a2, 0x0062, 0x0026, 0x0016, 0x000e, 0x0005,
    0x0004, 0x0003, 0x0000, 0x0001, 0x000a, 0x0012, 0x0002, 0x0022,
    0x01c6, 0x02c6, 0x06c6, 0x0ec6
}

FFT TABLES.

Definition at line 188 of file qdm2data.h.

const byte Audio::fft_level_exp_huffbits[20] [static]
Initial value:
 {
    12, 3, 3, 3, 3, 3, 3, 4, 4, 5, 5, 6, 6, 6, 7, 8, 9, 10, 11, 12
}

Definition at line 207 of file qdm2data.h.

Initial value:
 {
    0x0f24, 0x0001, 0x0002, 0x0000, 0x0006, 0x0005, 0x0007, 0x000c,
    0x000b, 0x0014, 0x0013, 0x0004, 0x0003, 0x0023, 0x0064, 0x00a4,
    0x0024, 0x0124, 0x0324, 0x0724
}

Definition at line 201 of file qdm2data.h.

const int16 Audio::fft_level_index_table[256] [static]
Initial value:
 {
    0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1,
    2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
    3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3,
    3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3,
    4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4,
    4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4,
    4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4,
    4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4,
    5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,
    5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,
    5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,
    5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,
    5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,
    5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,
    5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,
    5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,
}

Definition at line 233 of file qdm2data.h.

Initial value:
 {
    6, 1, 2, 3, 4, 5, 6
}

Definition at line 216 of file qdm2data.h.

Initial value:
 {
    0x3e, 0x01, 0x00, 0x02, 0x06, 0x0e, 0x1e
}

Definition at line 212 of file qdm2data.h.

Initial value:
 {
    6, 2, 2, 4, 4, 6, 5, 4, 2
}

Definition at line 225 of file qdm2data.h.

Initial value:
 {
    0x35, 0x02, 0x00, 0x01, 0x0d, 0x15, 0x05, 0x09, 0x03
}

Definition at line 221 of file qdm2data.h.

const byte Audio::fft_subpackets[32] [static]
Initial value:
 {
    0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 0,
    0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 0, 0
}

Definition at line 505 of file qdm2data.h.

const float Audio::fft_tone_envelope_table[4][31] [static]
Initial value:
 {
    { .009607375f, .038060248f, .084265202f, .146446645f, .222214907f, .308658302f,
      .402454883f, .500000060f, .597545207f, .691341758f, .777785182f, .853553414f,
      .915734828f, .961939812f, .990392685f, 1.00000000f, .990392625f, .961939752f,
      .915734768f, .853553295f, .777785063f, .691341639f, .597545087f, .500000000f,
      .402454853f, .308658272f, .222214878f, .146446615f, .084265172f, .038060218f,
      .009607345f },
    { .038060248f, .146446645f, .308658302f, .500000060f, .691341758f, .853553414f,
      .961939812f, 1.00000000f, .961939752f, .853553295f, .691341639f, .500000000f,
      .308658272f, .146446615f, .038060218f, .000000000f, .000000000f, .000000000f,
      .000000000f, .000000000f, .000000000f, .000000000f, .000000000f, .000000000f,
      .000000000f, .000000000f, .000000000f, .000000000f, .000000000f, .000000000f,
      .000000000f },
    { .146446645f, .500000060f, .853553414f, 1.00000000f, .853553295f, .500000000f,
      .146446615f, .000000000f, .000000000f, .000000000f, .000000000f, .000000000f,
      .000000000f, .000000000f, .000000000f, .000000000f, .000000000f, .000000000f,
      .000000000f, .000000000f, .000000000f, .000000000f, .000000000f, .000000000f,
      .000000000f, .000000000f, .000000000f, .000000000f, .000000000f, .000000000f,
      .000000000f },
    { .500000060f, 1.00000000f, .500000000f, .000000000f, .000000000f, .000000000f,
      .000000000f, .000000000f, .000000000f, .000000000f, .000000000f, .000000000f,
      .000000000f, .000000000f, .000000000f, .000000000f, .000000000f, .000000000f,
      .000000000f, .000000000f, .000000000f, .000000000f, .000000000f, .000000000f,
      .000000000f, .000000000f, .000000000f, .000000000f, .000000000f, .000000000f,
      .000000000f }
}

Definition at line 471 of file qdm2data.h.

const float Audio::fft_tone_level_table[2][64] [static]

Definition at line 433 of file qdm2data.h.

const float Audio::fft_tone_sample_table[4][16][5] [static]

Definition at line 363 of file qdm2data.h.

ov_callbacks Audio::g_stream_wrap [static]
Initial value:
 {
    read_stream_wrap, seek_stream_wrap, close_stream_wrap, tell_stream_wrap
}

Definition at line 80 of file vorbis.cpp.

Initial value:
 {
    10, 12, 10, 13,  9, 13,  9,  8,
     7,  5,  5,  4,  4,  3,  3,  3,
     4,  3,  4,  4,  5,  5,  6,  8,
     7, 10,  8, 10,  9,  8,  9,  9,
    13, 10, 13, 13, 13
}

Definition at line 1373 of file wmadata.h.

Initial value:
 {
    0x00003, 0x002E7, 0x00001, 0x005CD, 0x0005D, 0x005C9, 0x0005E, 0x00003,
    0x00016, 0x0000B, 0x00001, 0x00006, 0x00001, 0x00006, 0x00004, 0x00005,
    0x00004, 0x00007, 0x00003, 0x00007, 0x00004, 0x0000A, 0x0000A, 0x00002,
    0x00003, 0x00000, 0x00005, 0x00002, 0x0005F, 0x00004, 0x00003, 0x00002,
    0x005C8, 0x000B8, 0x005CA, 0x005CB, 0x005CC
}

Definition at line 1365 of file wmadata.h.

const uint32 Audio::kCodecPCM = MKTAG('N', 'O', 'N', 'E') [static]

Definition at line 73 of file aiff.cpp.

const int Audio::kLSPCoefCount = 10 [static]

Definition at line 1411 of file wmadata.h.

const uint32 Audio::kVersionAIFC = MKTAG('A', 'I', 'F', 'C') [static]

Definition at line 70 of file aiff.cpp.

const uint32 Audio::kVersionAIFF = MKTAG('A', 'I', 'F', 'F') [static]

Definition at line 69 of file aiff.cpp.

const byte Audio::last_coeff[3] [static]
Initial value:
 {
    4, 7, 10
}

Definition at line 252 of file qdm2data.h.

const uint16 Audio::levels0[60] [static]
Initial value:
 {
    317, 92, 62, 60, 19, 17, 10,  7,
      6,  5,  5,  3,  3,  3,  2,  2,
      2,  2,  2,  2,  2,  1,  2,  2,
      1,  1,  1,  1,  1,  1,  1,  1,
      1,  1,  1,  1,  1,  1,  1,  1,
      1,  1,  1,  1,  1,  1,  1,  1,
      1,  1,  1,  1,  1,  1,  1,  1,
      1,  1,  1,  1
}

Definition at line 1234 of file wmadata.h.

const uint16 Audio::levels1[40] [static]
Initial value:
 {
    311, 91, 61, 28, 10,  6,  5,  2,
      2,  2,  2,  2,  2,  2,  2,  1,
      1,  1,  1,  1,  1,  1,  1,  1,
      1,  1,  1,  1,  1,  1,  1,  1,
      1,  1,  1,  1,  1,  1,  1,  1
}

Definition at line 1245 of file wmadata.h.

const uint16 Audio::levels2[340] [static]

Definition at line 1253 of file wmadata.h.

const uint16 Audio::levels3[180] [static]
Initial value:
 {
    351, 122, 76, 61, 41, 42, 24, 30,
     22,  19, 11,  9, 10,  8,  5,  5,
      4,   5,  5,  3,  3,  3,  3,  3,
      3,   3,  2,  2,  3,  2,  2,  2,
      3,   3,  2,  2,  2,  3,  2,  2,
      2,   2,  2,  2,  2,  2,  2,  2,
      2,   2,  2,  2,  2,  2,  1,  1,
      2,   2,  1,  2,  1,  2,  2,  2,
      2,   2,  2,  1,  2,  1,  1,  1,
      1,   1,  1,  1,  1,  1,  1,  2,
      2,   1,  2,  1,  1,  1,  1,  1,
      1,   1,  1,  1,  1,  1,  1,  1,
      1,   1,  1,  1,  1,  1,  1,  1,
      1,   1,  1,  1,  1,  1,  1,  1,
      1,   1,  1,  1,  1,  1,  1,  1,
      1,   1,  1,  1,  1,  1,  1,  1,
      1,   1,  1,  1,  1,  1,  1,  1,
      1,   1,  1,  1,  1,  1,  1,  1,
      1,   1,  1,  1,  1,  1,  1,  1,
      1,   1,  1,  1,  1,  1,  1,  1,
      1,   1,  1,  1,  1,  1,  1,  1,
      1,   1,  1,  1,  1,  1,  1,  1,
      1,   1,  1,  1
}

Definition at line 1299 of file wmadata.h.

const uint16 Audio::levels4[70] [static]
Initial value:
 {
    113, 68, 49, 42, 40, 32, 27, 15,
     10,  5,  3,  3,  3,  3,  2,  2,
      2,  2,  2,  1,  1,  1,  1,  1,
      1,  1,  1,  1,  1,  1,  1,  1,
      1,  1,  1,  1,  1,  1,  1,  1,
      1,  1,  1,  1,  1,  1,  1,  1,
      1,  1,  1,  1,  1,  1,  1,  1,
      1,  1,  1,  1,  1,  1,  1,  1,
      1,  1,  1,  1,  1,  1
}

Definition at line 1325 of file wmadata.h.

const uint16 Audio::levels5[40] [static]
Initial value:
 {
    214, 72, 42, 40, 18,  4,  4,  2,
      2,  2,  2,  2,  1,  1,  2,  1,
      1,  1,  1,  1,  1,  1,  1,  1,
      1,  1,  1,  1,  1,  1,  1,  1,
      1,  1,  1,  1,  1,  1,  1,  1
}

Definition at line 1337 of file wmadata.h.

Initial value:
 {
    {  1.98732877,  1.97944528,  1.97179088,  1.96260549,  1.95038374,  1.93336114,  1.90719232,  1.86191415, },
    {  1.97260000,  1.96083160,  1.94982586,  1.93806164,  1.92516608,  1.91010199,  1.89232331,  1.87149812,
       1.84564818,  1.81358067,  1.77620070,  1.73265264,  1.67907855,  1.60959081,  1.50829650,  1.33120330, },
    {  1.90109110,  1.86482426,  1.83419671,  1.80168452,  1.76650116,  1.72816320,  1.68502700,  1.63738256,
       1.58501580,  1.51795181,  1.43679906,  1.33950585,  1.24176208,  1.12260729,  0.96749668,  0.74048265, },
    {  1.76943864,  1.67822463,  1.59946365,  1.53560582,  1.47470796,  1.41210167,  1.34509536,  1.27339507,
       1.19303814,  1.09765169,  0.98818722,  0.87239446,  0.74369172,  0.59768184,  0.43168630,  0.17977021, },
    {  1.43428349,  1.32038354,  1.21074086,  1.10577988,  1.00561746,  0.90335924,  0.80437489,  0.70709671,
       0.60427395,  0.49814048,  0.38509539,  0.27106800,  0.14407416,  0.00219910, -0.16725141, -0.36936085, },
    {  0.99895687,  0.84188166,  0.70753739,  0.57906595,  0.47055563,  0.36966965,  0.26826648,  0.17163380,
       0.07208392, -0.03062936, -1.40037388, -0.25128968, -0.37213937, -0.51075646, -0.64887512, -0.80308031, },
    {  0.26515280,  0.06313551, -0.08872080, -0.21103548, -0.31069678, -0.39680323, -0.47223474, -0.54167135,
      -0.61444740, -0.68943343, -0.76580211, -0.85170082, -0.95289061, -1.06514703, -1.20510707, -1.37617746, },
    { -0.53940301, -0.73770929, -0.88424876, -1.01117930, -1.13389091, -1.26830073, -1.42041987, -1.62033919,
      -1.10158808, -1.16512566, -1.23337128, -1.30414401, -1.37663312, -1.46853845, -1.57625798, -1.66893638, },
    { -0.38601997, -0.56009350, -0.66978483, -0.76028471, -0.83846064, -0.90868087, -0.97408881, -1.03694962, },
    { -1.56144989, -1.65944032, -1.72689685, -1.77857740, -1.82203011, -1.86220079, -1.90283983, -1.94820479, },
}

Definition at line 1413 of file wmadata.h.

const uint Audio::MAX_OUTPUT_CHANNELS = 2 [static]

Definition at line 82 of file flac.cpp.

const int Audio::MSADPCMAdaptationTable[] [static]
Initial value:
 {
    230, 230, 230, 230, 307, 409, 512, 614,
    768, 614, 512, 409, 307, 230, 230, 230
}

Definition at line 266 of file adpcm.cpp.

const int Audio::MSADPCMAdaptCoeff1[] [static]
Initial value:
 {
    256, 512, 0, 192, 240, 460, 392
}

Definition at line 258 of file adpcm.cpp.

const int Audio::MSADPCMAdaptCoeff2[] [static]
Initial value:
 {
    0, -256, 0, 64, 0, -208, -232
}

Definition at line 262 of file adpcm.cpp.

const int16 Audio::okiStepSize[49] [static]
Initial value:
 {
       16,   17,   19,   21,   23,   25,   28,   31,
       34,   37,   41,   45,   50,   55,   60,   66,
       73,   80,   88,   97,  107,  118,  130,  143,
      157,  173,  190,  209,  230,  253,  279,  307,
      337,  371,  408,  449,  494,  544,  598,  658,
      724,  796,  876,  963, 1060, 1166, 1282, 1411,
     1552
}

Definition at line 90 of file adpcm.cpp.

const float Audio::powTab[] [static]

Definition at line 1134 of file wma.cpp.

const ASFGUID Audio::s_asfAudioStream = ASFGUID(0x40, 0x9E, 0x69, 0xF8, 0x4D, 0x5B, 0xCF, 0x11, 0xA8, 0xFD, 0x00, 0x80, 0x5F, 0x5C, 0x44, 0x2B) [static]

Definition at line 75 of file asf.cpp.

const ASFGUID Audio::s_asfCodecComment = ASFGUID(0x40, 0x52, 0xD1, 0x86, 0x1D, 0x31, 0xD0, 0x11, 0xA3, 0xA4, 0x00, 0xA0, 0xC9, 0x03, 0x48, 0xF6) [static]

Definition at line 73 of file asf.cpp.

const ASFGUID Audio::s_asfComment = ASFGUID(0x33, 0x26, 0xb2, 0x75, 0x8E, 0x66, 0xCF, 0x11, 0xa6, 0xd9, 0x00, 0xaa, 0x00, 0x62, 0xce, 0x6c) [static]

Definition at line 71 of file asf.cpp.

const ASFGUID Audio::s_asfDataHeader = ASFGUID(0x36, 0x26, 0xb2, 0x75, 0x8E, 0x66, 0xCF, 0x11, 0xa6, 0xd9, 0x00, 0xaa, 0x00, 0x62, 0xce, 0x6c) [static]

Definition at line 74 of file asf.cpp.

const ASFGUID Audio::s_asfExtendedHeader = ASFGUID(0x40, 0xA4, 0xD0, 0xD2, 0x07, 0xE3, 0xD2, 0x11, 0x97, 0xF0, 0x00, 0xA0, 0xC9, 0x5E, 0xA8, 0x50) [static]

Definition at line 76 of file asf.cpp.

const ASFGUID Audio::s_asfFileHeader = ASFGUID(0xA1, 0xDC, 0xAB, 0x8C, 0x47, 0xA9, 0xCF, 0x11, 0x8E, 0xE4, 0x00, 0xC0, 0x0C, 0x20, 0x53, 0x65) [static]

Definition at line 69 of file asf.cpp.

const ASFGUID Audio::s_asfHead1 = ASFGUID(0xb5, 0x03, 0xbf, 0x5f, 0x2E, 0xA9, 0xCF, 0x11, 0x8e, 0xe3, 0x00, 0xc0, 0x0c, 0x20, 0x53, 0x65) [static]

Definition at line 70 of file asf.cpp.

const ASFGUID Audio::s_asfHeader = ASFGUID(0x30, 0x26, 0xB2, 0x75, 0x8E, 0x66, 0xCF, 0x11, 0xA6, 0xD9, 0x00, 0xAA, 0x00, 0x62, 0xCE, 0x6C) [static]

Definition at line 68 of file asf.cpp.

const ASFGUID Audio::s_asfStreamBitRate = ASFGUID(0xce, 0x75, 0xf8, 0x7b, 0x8d, 0x46, 0xd1, 0x11, 0x8d, 0x82, 0x00, 0x60, 0x97, 0xc9, 0xa2, 0xb2) [static]

Definition at line 77 of file asf.cpp.

const ASFGUID Audio::s_asfStreamHeader = ASFGUID(0x91, 0x07, 0xDC, 0xB7, 0xB7, 0xA9, 0xCF, 0x11, 0x8E, 0xE6, 0x00, 0xC0, 0x0C, 0x20, 0x53, 0x65) [static]

Definition at line 72 of file asf.cpp.

const double Audio::s_xaDataTable[5][2] [static]
Initial value:
 {
    {  0.0, 0.0 },
    {  60.0 / 64.0,  0.0 },
    {  115.0 / 64.0, -52.0 / 64.0 },
    {  98.0 / 64.0, -55.0 / 64.0 },
    {  122.0 / 64.0, -60.0 / 64.0 }
}

Definition at line 71 of file xa.cpp.

const float Audio::sb_noise_attenuation[32] [static]
Initial value:
 {
    0.0f, 0.0f, 0.3f, 0.4f, 0.5f, 0.7f, 1.0f, 1.0f,
    1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f,
    1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f,
    1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f,
}

Definition at line 498 of file qdm2data.h.

Initial value:
 {
    18, 18, 18, 18, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19,
    19, 19, 19, 18, 19, 18, 17, 17, 16, 17, 16, 16, 16, 16, 15, 15,
    14, 14, 14, 14, 14, 14, 13, 13, 12, 12, 12, 11, 12, 11, 10, 10,
    10,  9,  9,  8,  8,  8,  7,  6,  6,  5,  4,  3,  1,  4,  4,  5,
     6,  6,  7,  7,  8,  8,  9,  9, 10, 10, 10, 11, 11, 11, 11, 12,
    12, 13, 13, 13, 14, 14, 16, 15, 16, 15, 18, 19, 19, 19, 19, 19,
    19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19,
    19, 19, 19, 19, 19, 19, 19, 19, 19
}

Definition at line 1400 of file wmadata.h.

Initial value:
 {
    0x3FFE8, 0x3FFE6, 0x3FFE7, 0x3FFE5, 0x7FFF5, 0x7FFF1, 0x7FFED, 0x7FFF6,
    0x7FFEE, 0x7FFEF, 0x7FFF0, 0x7FFFC, 0x7FFFD, 0x7FFFF, 0x7FFFE, 0x7FFF7,
    0x7FFF8, 0x7FFFB, 0x7FFF9, 0x3FFE4, 0x7FFFA, 0x3FFE3, 0x1FFEF, 0x1FFF0,
    0x0FFF5, 0x1FFEE, 0x0FFF2, 0x0FFF3, 0x0FFF4, 0x0FFF1, 0x07FF6, 0x07FF7,
    0x03FF9, 0x03FF5, 0x03FF7, 0x03FF3, 0x03FF6, 0x03FF2, 0x01FF7, 0x01FF5,
    0x00FF9, 0x00FF7, 0x00FF6, 0x007F9, 0x00FF4, 0x007F8, 0x003F9, 0x003F7,
    0x003F5, 0x001F8, 0x001F7, 0x000FA, 0x000F8, 0x000F6, 0x00079, 0x0003A,
    0x00038, 0x0001A, 0x0000B, 0x00004, 0x00000, 0x0000A, 0x0000C, 0x0001B,
    0x00039, 0x0003B, 0x00078, 0x0007A, 0x000F7, 0x000F9, 0x001F6, 0x001F9,
    0x003F4, 0x003F6, 0x003F8, 0x007F5, 0x007F4, 0x007F6, 0x007F7, 0x00FF5,
    0x00FF8, 0x01FF4, 0x01FF6, 0x01FF8, 0x03FF8, 0x03FF4, 0x0FFF0, 0x07FF4,
    0x0FFF6, 0x07FF5, 0x3FFE2, 0x7FFD9, 0x7FFDA, 0x7FFDB, 0x7FFDC, 0x7FFDD,
    0x7FFDE, 0x7FFD8, 0x7FFD2, 0x7FFD3, 0x7FFD4, 0x7FFD5, 0x7FFD6, 0x7FFF2,
    0x7FFDF, 0x7FFE7, 0x7FFE8, 0x7FFE9, 0x7FFEA, 0x7FFEB, 0x7FFE6, 0x7FFE0,
    0x7FFE1, 0x7FFE2, 0x7FFE3, 0x7FFE4, 0x7FFE5, 0x7FFD7, 0x7FFEC, 0x7FFF4,
    0x7FFF3
}

Definition at line 1381 of file wmadata.h.

Initial value:
 {
    

    { "FLAC",         ".flac", makeFLACStream },
    { "FLAC",         ".fla",  makeFLACStream },


    { "Ogg Vorbis",   ".ogg",  makeVorbisStream },


    { "MPEG Layer 3", ".mp3",  makeMP3Stream },

    { "MPEG-4 Audio",   ".m4a",  makeQuickTimeStream },
}

Definition at line 52 of file audiostream.cpp.

Definition at line 302 of file qdm2data.h.

const float Audio::type30_dequant[8] [static]
Initial value:
 {
    -1.0f,-0.625f,-0.291666656732559f,0.0f,
    0.25f,0.5f,0.75f,1.0f,
}

Definition at line 516 of file qdm2data.h.

const float Audio::type34_delta[10] [static]
Initial value:
 { 
    -1.0f,-0.60947573184967f,-0.333333343267441f,-0.138071194291115f,0.0f,
    0.138071194291115f,0.333333343267441f,0.60947573184967f,1.0f,0.0f,
}

Definition at line 521 of file qdm2data.h.

const int Audio::vlc_stage3_values[60] [static]
Initial value:
 {
        0,     1,     2,     3,     4,     6,     8,    10,    12,    16,    20,    24,
       28,    36,    44,    52,    60,    76,    92,   108,   124,   156,   188,   220,
      252,   316,   380,   444,   508,   636,   764,   892,  1020,  1276,  1532,  1788,
     2044,  2556,  3068,  3580,  4092,  5116,  6140,  7164,  8188, 10236, 12284, 14332,
    16380, 20476, 24572, 28668, 32764, 40956, 49148, 57340, 65532, 81916, 98300,114684
}

Definition at line 355 of file qdm2data.h.

const byte Audio::vlc_tab_diff_huffbits[37] [static]
Initial value:
 {
    13, 3, 3, 2, 3, 3, 4, 4, 6, 5, 6, 6, 7, 7, 8, 8,
    8, 9, 8, 11, 9, 10, 8, 10, 9, 12, 10, 0, 10, 13, 11, 0,
    12, 0, 13, 0, 13
}

Definition at line 52 of file qdm2data.h.

Initial value:
 {
    0x1c57, 0x0004, 0x0000, 0x0001, 0x0003, 0x0002, 0x000f, 0x000e,
    0x0007, 0x0016, 0x0037, 0x0027, 0x0026, 0x0066, 0x0006, 0x0097,
    0x0046, 0x01c6, 0x0017, 0x0786, 0x0086, 0x0257, 0x00d7, 0x0357,
    0x00c6, 0x0386, 0x0186, 0x0000, 0x0157, 0x0c57, 0x0057, 0x0000,
    0x0b86, 0x0000, 0x1457, 0x0000, 0x0457
}

Definition at line 44 of file qdm2data.h.

Initial value:
 {
    10, 1, 2, 6, 4, 5, 6, 7, 6, 6, 7, 7, 8, 7, 8, 8, 9, 7, 8, 6, 6, 8, 10
}

Definition at line 125 of file qdm2data.h.

Initial value:
 {
    0x038e, 0x0001, 0x0000, 0x0022, 0x000a, 0x0006, 0x0012, 0x0002,
    0x001e, 0x003e, 0x0056, 0x0016, 0x000e, 0x0032, 0x0072, 0x0042,
    0x008e, 0x004e, 0x00f2, 0x002e, 0x0036, 0x00c2, 0x018e
}

Definition at line 119 of file qdm2data.h.

Initial value:
 {
    11, 1, 6, 6, 5, 4, 3, 6, 6, 5, 6, 6, 7, 6, 6, 6,
    6, 6, 6, 7, 8, 6, 7, 7, 7, 9, 10, 11
}

Definition at line 137 of file qdm2data.h.

Initial value:
 {
    0x07a4, 0x0001, 0x0020, 0x0012, 0x001c, 0x0008, 0x0006, 0x0010,
    0x0000, 0x0014, 0x0004, 0x0032, 0x0070, 0x000c, 0x0002, 0x003a,
    0x001a, 0x002c, 0x002a, 0x0022, 0x0024, 0x000a, 0x0064, 0x0030,
    0x0062, 0x00a4, 0x01a4, 0x03a4
}

Definition at line 130 of file qdm2data.h.

Initial value:
 {
    13, 2, 0, 8, 4, 3, 3, 3, 4, 4, 5, 5, 6, 5, 7, 7,
    7, 7, 7, 7, 8, 8, 8, 9, 8, 8, 9, 9, 10, 11, 13, 12
}

Definition at line 150 of file qdm2data.h.

Initial value:
 {
    0x1760, 0x0001, 0x0000, 0x0082, 0x000c, 0x0006, 0x0003, 0x0007,
    0x0008, 0x0004, 0x0010, 0x0012, 0x0022, 0x001a, 0x0000, 0x0020,
    0x000a, 0x0040, 0x004a, 0x006a, 0x002a, 0x0042, 0x0002, 0x0060,
    0x00aa, 0x00e0, 0x00c2, 0x01c2, 0x0160, 0x0360, 0x0760, 0x0f60
}

Definition at line 143 of file qdm2data.h.

Initial value:
 {
    14, 4, 0, 10, 4, 3, 3, 4, 4, 3, 4, 4, 5, 4, 5, 6,
    6, 5, 6, 7, 7, 7, 8, 8, 8, 8, 9, 10, 10, 10, 10, 11,
    12, 13, 14
}

Definition at line 164 of file qdm2data.h.

Initial value:
 {
    0x33ea, 0x0005, 0x0000, 0x000c, 0x0000, 0x0006, 0x0003, 0x0008,
    0x0002, 0x0001, 0x0004, 0x0007, 0x001a, 0x000f, 0x001c, 0x002c,
    0x000a, 0x001d, 0x002d, 0x002a, 0x000d, 0x004c, 0x008c, 0x006a,
    0x00cd, 0x004d, 0x00ea, 0x020c, 0x030c, 0x010c, 0x01ea, 0x07ea,
    0x0bea, 0x03ea, 0x13ea
}

Definition at line 156 of file qdm2data.h.

Initial value:
 {
    15, 6, 0, 9, 3, 3, 3, 4, 4, 3, 4, 4, 5, 4, 5, 6,
    6, 6, 6, 8, 7, 6, 8, 9, 9, 8, 9, 10, 11, 10, 11, 12,
    12, 12, 14, 15, 14, 14
}

Definition at line 179 of file qdm2data.h.

Initial value:
 {
    0x5282, 0x0016, 0x0000, 0x0136, 0x0004, 0x0000, 0x0007, 0x000a,
    0x000e, 0x0003, 0x0001, 0x000d, 0x0006, 0x0009, 0x0012, 0x0005,
    0x0025, 0x0022, 0x0015, 0x0002, 0x0076, 0x0035, 0x0042, 0x00c2,
    0x0182, 0x00b6, 0x0036, 0x03c2, 0x0482, 0x01c2, 0x0682, 0x0882,
    0x0a82, 0x0082, 0x0282, 0x1282, 0x3282, 0x2282
}

Definition at line 171 of file qdm2data.h.

const byte Audio::vlc_tab_level_huffbits[24] [static]
Initial value:
 {
    10, 6, 7, 7, 6, 6, 6, 6, 6, 5, 4, 4, 4, 3, 3, 3, 3, 4, 4, 5, 7, 8, 9, 10
}

Definition at line 39 of file qdm2data.h.

Initial value:
 {
    0x037c, 0x0004, 0x003c, 0x004c, 0x003a, 0x002c, 0x001c, 0x001a,
    0x0024, 0x0014, 0x0001, 0x0002, 0x0000, 0x0003, 0x0007, 0x0005,
    0x0006, 0x0008, 0x0009, 0x000a, 0x000c, 0x00fc, 0x007c, 0x017c
}

VLC TABLES.

Definition at line 33 of file qdm2data.h.

const byte Audio::vlc_tab_run_huffbits[6] [static]
Initial value:
 {
    5, 1, 2, 3, 4, 5
}

Definition at line 63 of file qdm2data.h.

Initial value:
 {
    0x1f, 0x00, 0x01, 0x03, 0x07, 0x0f
}

Definition at line 59 of file qdm2data.h.

Initial value:
 {
    15, 4, 2, 1, 3, 5, 6, 7, 8, 10, 10, 11, 11, 12, 12, 12, 14, 14, 15, 14
}

Definition at line 74 of file qdm2data.h.

Initial value:
 {
    0x5714, 0x000c, 0x0002, 0x0001, 0x0000, 0x0004, 0x0034, 0x0054,
    0x0094, 0x0014, 0x0114, 0x0214, 0x0314, 0x0614, 0x0e14, 0x0f14,
    0x2714, 0x0714, 0x1714, 0x3714
}

Definition at line 68 of file qdm2data.h.

Initial value:
 {
    11, 0, 0, 0, 0, 0, 10, 8, 8, 7, 6, 6, 5, 5, 4, 2, 2, 2, 4, 7, 8, 9, 0, 11
}

Definition at line 96 of file qdm2data.h.

Initial value:
 {
    0x0664, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0064, 0x00e4,
    0x00a4, 0x0068, 0x0004, 0x0008, 0x0014, 0x0018, 0x0000, 0x0001,
    0x0002, 0x0003, 0x000c, 0x0028, 0x0024, 0x0164, 0x0000, 0x0264
}

Definition at line 90 of file qdm2data.h.

Initial value:
 {
    12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 11, 9, 7, 5, 3, 1, 2, 4, 6, 8, 10, 12
}

Definition at line 85 of file qdm2data.h.

Initial value:
 {
    0x0fea, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
    0x0000, 0x0000, 0x0000, 0x0000, 0x03ea, 0x00ea, 0x002a, 0x001a,
    0x0006, 0x0001, 0x0000, 0x0002, 0x000a, 0x006a, 0x01ea, 0x07ea
}

Definition at line 79 of file qdm2data.h.

Initial value:
 {
    6, 3, 3, 2, 2, 3, 4, 5, 6
}

Definition at line 105 of file qdm2data.h.

Initial value:
 {
    0x3c, 0x06, 0x00, 0x01, 0x03, 0x02, 0x04, 0x0c, 0x1c
}

Definition at line 101 of file qdm2data.h.

Initial value:
 {
    5, 4, 3, 3, 3, 3, 3, 3, 3, 5
}

Definition at line 114 of file qdm2data.h.

Initial value:
 {
    0x18, 0x00, 0x01, 0x04, 0x05, 0x07, 0x03, 0x02, 0x06, 0x08
}

Definition at line 110 of file qdm2data.h.

Initial value:
 {
    100,   200,  300, 400,   510,  630,  770,    920,
    1080, 1270, 1480, 1720, 2000, 2320, 2700,   3150,
    3700, 4400, 5300, 6400, 7700, 9500, 12000, 15500,
    24500
}

Definition at line 32 of file wmadata.h.



Generated on Sat Sep 14 2019 05:03:44 for ResidualVM by doxygen 1.7.1
curved edge   curved edge