#include <sound_digital_mr.h>
Public Member Functions | |
| SoundDigital_MR (KyraEngine_MR *vm, Audio::Mixer *mixer) | |
| int | playSound (const char *filename, uint8 priority, Audio::Mixer::SoundType type, int volume=255, bool loop=false, int channel=-1) |
| bool | isPlaying (int channel) |
| void | stopSound (int channel) |
| void | stopAllSounds () |
| void | beginFadeOut (int channel, int ticks) |
Digital audio output device.
This is just used for Kyrandia 3.
| int Kyra::SoundDigital_MR::playSound | ( | const char * | filename, |
| uint8 | priority, | ||
| Audio::Mixer::SoundType | type, | ||
| int | volume = 255, |
||
| bool | loop = false, |
||
| int | channel = -1 |
||
| ) |
Plays a sound.
| filename | file to be played |
| priority | priority of the sound |
| type | type |
| volume | channel volume |
| loop | true if the sound should loop (endlessly) |
| channel | tell the sound player to use a specific channel for playback |
| bool Kyra::SoundDigital_MR::isPlaying | ( | int | channel | ) |
Checks if a given channel is playing a sound.
| channel | channel number to check |
| void Kyra::SoundDigital_MR::stopSound | ( | int | channel | ) |
Stop the playback of a sound in the given channel.
| channel | channel number |
| void Kyra::SoundDigital_MR::stopAllSounds | ( | ) |
Stops playback of all sounds.
| void Kyra::SoundDigital_MR::beginFadeOut | ( | int | channel, |
| int | ticks | ||
| ) |
Makes the sound in a given channel fading out.
| channel | channel number |
| ticks | fadeout time |