ScummVM API documentation
Gob::SoundBlaster Class Reference
Inheritance diagram for Gob::SoundBlaster:
Gob::SoundMixer Audio::AudioStream

Public Member Functions

 SoundBlaster (Audio::Mixer &mixer)
 
void playSample (SoundDesc &sndDesc, int16 repCount, int16 frequency, int16 fadeLength=0)
 
void stopSound (int16 fadeLength, SoundDesc *sndDesc=0)
 
void playComposition (const int16 *composition, int16 freqVal, SoundDesc *sndDescs=0, int8 sndCount=60)
 
void stopComposition ()
 
void endComposition ()
 
void repeatComposition (int32 repCount)
 
- Public Member Functions inherited from Gob::SoundMixer
 SoundMixer (Audio::Mixer &mixer, Audio::Mixer::SoundType type)
 
virtual void play (SoundDesc &sndDesc, int16 repCount, int16 frequency, int16 fadeLength=0)
 
virtual void stop (int16 fadeLength)
 
bool isPlaying () const
 
char getPlayingSound () const
 
void setRepeating (int32 repCount)
 
int readBuffer (int16 *buffer, const int numSamples) override
 
bool isStereo () const override
 
bool endOfData () const override
 
bool endOfStream () const override
 
int getRate () const override
 

Protected Member Functions

void setSample (SoundDesc &sndDesc, int16 repCount, int16 frequency, int16 fadeLength) override
 
void checkEndSample () override
 
void endFade () override
 
void nextCompositionPos ()
 

Protected Attributes

Common::Mutex _mutex
 
SoundDesc_compositionSamples
 
int8 _compositionSampleCount
 
int16 _composition [50]
 
int8 _compositionPos
 
int32 _compositionRepCount
 
SoundDesc_curSoundDesc
 
- Protected Attributes inherited from Gob::SoundMixer
Audio::Mixer_mixer
 
Audio::SoundHandle _handle
 
Common::Mutex _mutex
 
bool _16bit
 
bool _end
 
byte * _data
 
uint32 _length
 
uint32 _rate
 
int32 _freq
 
int32 _repCount
 
uint32 _offset
 
frac_t _offsetFrac
 
frac_t _offsetInc
 
int16 _cur
 
int16 _last
 
bool _fade
 
int32 _fadeVol
 
int32 _fadeVolStep
 
uint8 _fadeLength
 
uint32 _fadeSamples
 
uint32 _curFadeSamples
 
char _playingSound
 

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