#include <riven_sound.h>
Public Member Functions | |
| RivenSound (MohawkEngine_Riven *vm, Audio::RewindableAudioStream *rewindStream, Audio::Mixer::SoundType mixerType) | |
| void | play () |
| bool | isPlaying () const |
| void | pause () |
| uint16 | getVolume () const |
| void | setVolume (uint16 volume) |
| int16 | getBalance () const |
| void | setBalance (int16 balance) |
| void | setLooping (bool loop) |
A sound used internally by the SoundManager
| void Mohawk::RivenSound::play | ( | ) |
Start playing the sound stream passed to the constructor
| bool Mohawk::RivenSound::isPlaying | ( | ) | const |
Is the sound currently playing ar paused?
| void Mohawk::RivenSound::pause | ( | ) |
Pause the playback, the play method resumes
| uint16 Mohawk::RivenSound::getVolume | ( | ) | const |
Get the current volume
| void Mohawk::RivenSound::setVolume | ( | uint16 | volume | ) |
Change the playback volume
| int16 Mohawk::RivenSound::getBalance | ( | ) | const |
Get the current balance
| void Mohawk::RivenSound::setBalance | ( | int16 | balance | ) |
Change the balance
| void Mohawk::RivenSound::setLooping | ( | bool | loop | ) |
Set the sound to indefinitely loop. Must be called before starting the playback