diff options
author | Torbjörn Andersson | 2004-02-11 18:01:26 +0000 |
---|---|---|
committer | Torbjörn Andersson | 2004-02-11 18:01:26 +0000 |
commit | d21b5455c6e09ff4f56e873990ebd789a232586e (patch) | |
tree | b1b0c838ff0e7de24b09ad2b3d867f9719b5c870 /sky/music | |
parent | b20f9fcea821fefbe4b8c90726555efd57a7e5e8 (diff) | |
download | scummvm-rg350-d21b5455c6e09ff4f56e873990ebd789a232586e.tar.gz scummvm-rg350-d21b5455c6e09ff4f56e873990ebd789a232586e.tar.bz2 scummvm-rg350-d21b5455c6e09ff4f56e873990ebd789a232586e.zip |
Fixed bug #870890.
svn-id: r12825
Diffstat (limited to 'sky/music')
-rw-r--r-- | sky/music/gmmusic.cpp | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/sky/music/gmmusic.cpp b/sky/music/gmmusic.cpp index 2006197886..e7653ef19c 100644 --- a/sky/music/gmmusic.cpp +++ b/sky/music/gmmusic.cpp @@ -58,12 +58,7 @@ GmMusic::~GmMusic(void) { void GmMusic::setVolume(uint8 volume) { - uint8 sysEx[6]; - _musicVolume = volume; - if (volume > 0) volume = (volume * 2) / 3 + 43; // GM synths behave kinda logarithmic - sysEx[0] = 0x7F; sysEx[1] = 0x7F; sysEx[2] = 0x04; sysEx[3] = 0x01; - sysEx[4] = 0; sysEx[5] = volume & 0x7F; - _midiDrv->sysEx(sysEx, 6); + setFMVolume(volume); } void GmMusic::timerCall(void) { |