ScummVM API documentation
Sword1::Sound Class Reference

Public Member Functions

 Sound (Audio::Mixer *mixer, SwordEngine *vm, ResMan *pResMan)
 
void newScreen (uint32 screen)
 
void closeCowSystem ()
 
void engine ()
 
void checkSpeechFileEndianness ()
 
double endiannessHeuristicValue (int16 *data, uint32 dataSize, uint32 &maxSamples)
 
void installFadeTimer ()
 
void uninstallFadeTimer ()
 
void playSample (int32 fxNo)
 
void stopSample (int32 fxNo)
 
void setFXVolume (byte targetVolume, int handleIdx)
 
void clearAllFx ()
 
int addToQueue (uint32 fxNo)
 
void removeFromQueue (uint32 fxNo)
 
void startSpeech (uint16 roomNo, uint16 localNo)
 
bool amISpeaking ()
 
int32 checkSpeechStatus ()
 
void playSpeech ()
 
void stopSpeech ()
 
void streamMusicFile (int32 tuneId, int32 looped)
 
void updateMusicStreaming ()
 
void setCrossFadeIncrement ()
 
void fadeMusicDown (int32 rate)
 
void fadeFxDown (int32 rate)
 
void fadeFxUp (int32 rate)
 
void pauseSpeech ()
 
void unpauseSpeech ()
 
void pauseMusic ()
 
void unpauseMusic ()
 
void pauseFx ()
 
void unpauseFx ()
 
void getVolumes ()
 
void setVolumes ()
 
byte clampVolume (int32 volume)
 

Public Attributes

Common::Mutex _soundMutex
 
Audio::Mixer_mixer
 
uint32 _volFX [2] = { 0, 0 }
 
uint32 _volSpeech [2] = { 0, 0 }
 
uint32 _volMusic [2] = { 0, 0 }
 
int32 _fxCount = 0
 
int32 _fxFadingFlag = 0
 
int32 _fxFadingRate = 0
 
int32 _fxFadeVolume [2] = { 0, 0 }
 
int32 _musicFadeVolume [2] = { 0, 0 }
 
bool _fxSampleBusy [4] = { false, false, false, false }
 
byte * _speechSample = nullptr
 

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