aboutsummaryrefslogtreecommitdiff
path: root/engines/illusions/sound.cpp
diff options
context:
space:
mode:
authorEric Fry2018-05-05 22:01:16 +1000
committerEugene Sandulenko2018-07-20 06:43:33 +0000
commit2be02752218955374b5de881fc6f310097c09cbb (patch)
tree4890e6d5e9411a556e9fa681a4842f7e56ea745b /engines/illusions/sound.cpp
parentd3fbb0e8b97fbefa8a4ca019ea8689a98fcdc62b (diff)
downloadscummvm-rg350-2be02752218955374b5de881fc6f310097c09cbb.tar.gz
scummvm-rg350-2be02752218955374b5de881fc6f310097c09cbb.tar.bz2
scummvm-rg350-2be02752218955374b5de881fc6f310097c09cbb.zip
ILLUSIONS: Connect up midi fade to MidiPlayer object
Diffstat (limited to 'engines/illusions/sound.cpp')
-rw-r--r--engines/illusions/sound.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/engines/illusions/sound.cpp b/engines/illusions/sound.cpp
index 9379bf16c9..307d40a36b 100644
--- a/engines/illusions/sound.cpp
+++ b/engines/illusions/sound.cpp
@@ -152,6 +152,11 @@ void MidiPlayer::sendToChannel(byte channel, uint32 b) {
_channelsTable[channel]->send(b);
}
+void MidiPlayer::fade(int16 finalVolume, int16 duration) {
+ //TODO fade here.
+ debug(0, "Fade midi. finalVolume: %d, duration: %d", finalVolume, duration);
+}
+
// VoicePlayer
VoicePlayer::VoicePlayer() {
@@ -355,4 +360,8 @@ void SoundMan::stopMidiMusic() {
_midiPlayer->stop();
}
+void SoundMan::fadeMidiMusic(int16 finalVolume, int16 duration) {
+ _midiPlayer->fade(finalVolume, duration);
+}
+
} // End of namespace Illusions