ScummVM API documentation
Gob::Sound Class Reference

Public Types

enum  BackgroundPlayMode { kPlayModeLinear, kPlayModeRandom }
 

Public Member Functions

 Sound (GobEngine *vm)
 
SoundDescsampleGetBySlot (int slot)
 
const SoundDescsampleGetBySlot (int slot) const
 
int sampleGetNextFreeSlot () const
 
bool sampleLoad (SoundDesc *sndDesc, SoundType type, const char *fileName)
 
void sampleFree (SoundDesc *sndDesc, bool noteAdLib=false, int index=-1)
 
void blasterPlay (SoundDesc *sndDesc, int16 repCount, int16 frequency, int16 fadeLength=0)
 
void blasterStop (int16 fadeLength, SoundDesc *sndDesc=0)
 
void blasterPlayComposition (const int16 *composition, int16 freqVal, SoundDesc *sndDescs=0, int8 sndCount=kSoundsCount)
 
void blasterStopComposition ()
 
void blasterRepeatComposition (int32 repCount)
 
char blasterPlayingSound () const
 
void blasterSetRepeating (int32 repCount)
 
void blasterWaitEndPlay (bool interruptible=false, bool stopComp=true)
 
void speakerOn (int16 frequency, int32 length=-1)
 
void speakerOff ()
 
void speakerOnUpdate (uint32 millis)
 
bool adlibLoadADL (const char *fileName)
 
bool adlibLoadADL (byte *data, uint32 size, int index=-1)
 
bool adlibLoadMDY (const char *fileName)
 
bool adlibLoadTBR (const char *fileName)
 
void adlibUnload ()
 
void adlibPlayTrack (const char *trackname)
 
void adlibPlayBgMusic ()
 
void adlibPlay ()
 
void adlibStop ()
 
bool adlibIsPlaying () const
 
int adlibGetIndex () const
 
int32 adlibGetRepeating () const
 
void adlibSetRepeating (int32 repCount)
 
void adlibSyncVolume ()
 
bool infogramesLoadInstruments (const char *fileName)
 
bool infogramesLoadSong (const char *fileName)
 
void infogramesPlay ()
 
void infogramesStop ()
 
bool protrackerPlay (const char *fileName)
 
void protrackerStop ()
 
void cdLoadLIC (const Common::String &fname)
 
void cdUnloadLIC ()
 
void cdPlayBgMusic ()
 
void cdPlayMultMusic ()
 
void cdPlay (const Common::String &)
 
void cdStop ()
 
bool cdIsPlaying () const
 
int32 cdGetTrackPos (const char *keyTrack=0) const
 
const char * cdGetCurrentTrack () const
 
void cdTest (int trySubst, const char *label)
 
void bgPlay (const char *file, SoundType type)
 
void bgPlay (const char *base, const char *ext, SoundType type, int count)
 
void bgStop ()
 
void bgSetPlayMode (BackgroundPlayMode mode)
 
void bgShade ()
 
void bgUnshade ()
 

Static Public Member Functions

static void convToSigned (byte *buffer, int length)
 

Static Public Attributes

static const int kSoundsCount = 60
 

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