ScummVM
cdaudio.cpp File Reference

Go to the source code of this file.

Classes

struct  DS::CD::WaveHeader
 
struct  DS::CD::chunkHeader
 
struct  DS::CD::Header
 
struct  DS::CD::decoderFormat
 

Namespaces

 DS
 
 DS::CD
 

Functions

struct DS::CD::WaveHeader DS::CD::__attribute__ ((packed))
 
void DS::CD::playNextBlock ()
 
void DS::CD::decompressBlock ()
 
void DS::CD::allocBuffers ()
 
void DS::CD::setActive (bool active)
 
bool DS::CD::getActive ()
 
void DS::CD::playTrack (int track, int numLoops, int startFrame, int duration)
 
void DS::CD::update ()
 
void DS::CD::ARM_adpcm (int *block, int len, int stepTableIndex, int firstSample, s16 *decompressionBuffer)
 
void DS::CD::stopTrack ()
 
bool DS::CD::trackExists (int num)
 
bool DS::CD::checkCD ()
 
bool DS::CD::isPlaying ()
 

Variables

char riff [4]
 
u32 size
 
char wave [4]
 
char fmt [4]
 
u32 fmtSize
 
u16 fmtFormatTag
 
u16 fmtChannels
 
u32 fmtSamPerSec
 
u32 fmtBytesPerSec
 
u16 fmtBlockAlign
 
u16 fmtBitsPerSam
 
u16 fmtExtraData
 
u16 fmtExtra
 
char name [4]
 
s16 firstSample
 
char stepTableIndex
 
char reserved
 
s16 initial
 
unsigned char tableIndex
 
unsigned char test
 
unsigned char sample [1024]
 
static bool DS::CD::s_started = false
 
static bool DS::CD::s_active = false
 
static WaveHeader DS::CD::waveHeader
 
static Header DS::CD::blockHeader
 
static FILE * DS::CD::s_file
 
static int DS::CD::fillPos
 
static bool DS::CD::isPlayingFlag = false
 
static s16 * DS::CD::audioBuffer
 
static u32 DS::CD::sampleNum
 
static s16 * DS::CD::decompressionBuffer
 
static int DS::CD::s_numLoops
 
static int DS::CD::blockCount
 
static int DS::CD::dataChunkStart
 
static int DS::CD::blocksLeft
 
static bool DS::CD::trackStartsAt2 = false
 
static const int DS::CD::stepTab [89]
 
static const int DS::CD::indexTab [16]
 

Variable Documentation

◆ firstSample

s16 firstSample

Definition at line 37 of file cdaudio.cpp.

◆ fmt

char fmt[4]

Definition at line 43 of file cdaudio.cpp.

◆ fmtBitsPerSam

u16 fmtBitsPerSam

Definition at line 50 of file cdaudio.cpp.

◆ fmtBlockAlign

u16 fmtBlockAlign

Definition at line 49 of file cdaudio.cpp.

◆ fmtBytesPerSec

u32 fmtBytesPerSec

Definition at line 48 of file cdaudio.cpp.

◆ fmtChannels

u16 fmtChannels

Definition at line 46 of file cdaudio.cpp.

◆ fmtExtra

u16 fmtExtra

Definition at line 53 of file cdaudio.cpp.

◆ fmtExtraData

u16 fmtExtraData

Definition at line 52 of file cdaudio.cpp.

◆ fmtFormatTag

u16 fmtFormatTag

Definition at line 45 of file cdaudio.cpp.

◆ fmtSamPerSec

u32 fmtSamPerSec

Definition at line 47 of file cdaudio.cpp.

◆ fmtSize

u32 fmtSize

Definition at line 44 of file cdaudio.cpp.

◆ initial

s16 initial

Definition at line 37 of file cdaudio.cpp.

◆ name

char name[4]

Definition at line 37 of file cdaudio.cpp.

◆ reserved

char reserved

Definition at line 39 of file cdaudio.cpp.

◆ riff

char riff[4]

Definition at line 38 of file cdaudio.cpp.

◆ sample

unsigned char sample[1024]

Definition at line 40 of file cdaudio.cpp.

◆ size

u32 size

Definition at line 39 of file cdaudio.cpp.

◆ stepTableIndex

char stepTableIndex

Definition at line 38 of file cdaudio.cpp.

◆ tableIndex

unsigned char tableIndex

Definition at line 38 of file cdaudio.cpp.

◆ test

unsigned char test

Definition at line 39 of file cdaudio.cpp.

◆ wave

char wave[4]

Definition at line 40 of file cdaudio.cpp.