diff options
author | Max Horn | 2002-07-22 12:44:57 +0000 |
---|---|---|
committer | Max Horn | 2002-07-22 12:44:57 +0000 |
commit | 1c4167f0809eb8f49da0b4e428ee01b1aa3387fe (patch) | |
tree | e3229806027bb188d50e13527e1a1b3ffc56c391 /sound/imuse.cpp | |
parent | 72cfdcf415b670f90d648e5053812a165e5e1c9c (diff) | |
download | scummvm-rg350-1c4167f0809eb8f49da0b4e428ee01b1aa3387fe.tar.gz scummvm-rg350-1c4167f0809eb8f49da0b4e428ee01b1aa3387fe.tar.bz2 scummvm-rg350-1c4167f0809eb8f49da0b4e428ee01b1aa3387fe.zip |
pulled out arisme's recent changes to pauseMode, they are not correct as they break pause mode for all systems that use real MIDI drivers (see bug #584684). If you need a mute music mode, then add an according function to iMUSE/mixer but don't abuse pause mode, please
svn-id: r4615
Diffstat (limited to 'sound/imuse.cpp')
-rw-r--r-- | sound/imuse.cpp | 22 |
1 files changed, 10 insertions, 12 deletions
diff --git a/sound/imuse.cpp b/sound/imuse.cpp index 92a451685c..9cc0cfc5e1 100644 --- a/sound/imuse.cpp +++ b/sound/imuse.cpp @@ -44,18 +44,17 @@ /* Roland to General Midi patch table. Still needs some work. */ static const byte mt32_to_gmidi[128] = { // 0 1 2 3 4 5 6 7 8 9 A B C D E F - 0, 1, 0, 2, 4, 4, 5, 3, 16, 17, 18, 16, 16, 19, 20, 21, // 0x - 6, 6, 6, 7, 7, 7, 8, 112, 62, 62, 63, 63, 38, 38, 39, 39, // 1x - 88, 54, 52, 98, 97, 99, 14, 54, 102, 96, 53, 102, 81, 100, 14, 80, // 2x - 48, 48, 49, 45, 41, 40, 42, 42, 43, 46, 45, 24, 25, 28, 27, 104, // 3x - 32, 32, 34, 33, 36, 37, 35, 35, 79, 73, 72, 72, 74, 75, 64, 65, // 4x - 66, 67, 71, 71, 68, 69, 70, 22, 56, 59, 57, 57, 60, 60, 58, 61, // 5x - 61, 11, 11, 98, 14, 9, 14, 13, 12, 107, 107, 77, 78, 78, 76, 76, // 6x - 47, 117, 127, 118, 118, 116, 115, 119, 115, 112, 55, 124, 123, 0, 14, 117 // 7x + 0, 1, 0, 2, 4, 4, 5, 3, 16, 17, 18, 16, 16, 19, 20, 21, // 0x + 6, 6, 6, 7, 7, 7, 8, 112, 62, 62, 63, 63, 38, 38, 39, 39, // 1x + 88, 54, 52, 98, 97, 99, 14, 54, 102, 96, 53, 102, 81, 100, 14, 80, // 2x + 48, 48, 49, 45, 41, 40, 42, 42, 43, 46, 45, 24, 25, 28, 27, 104, // 3x + 32, 32, 34, 33, 36, 37, 35, 35, 79, 73, 72, 72, 74, 75, 64, 65, // 4x + 66, 67, 71, 71, 68, 69, 70, 22, 56, 59, 57, 57, 60, 60, 58, 61, // 5x + 61, 11, 11, 98, 14, 9, 14, 13, 12, 107, 107, 77, 78, 78, 76, 76, // 6x + 47, 117, 127, 118, 118, 116, 115, 119, 115, 112, 55, 124, 123, 0, 14, 117 // 7x }; - /* Put IMUSE specific classes here, instead of in a .h file * they will only be used from this file, so it will reduce * compile time */ @@ -1270,8 +1269,7 @@ int IMuseInternal::set_music_volume(uint vol) { if (vol > 100) vol = 100; - - if (vol < 1) + else if (vol < 1) vol = 1; _music_volume = vol; @@ -1288,7 +1286,6 @@ int IMuseInternal::set_master_volume(uint vol) vol = vol / (100 / _music_volume); _master_volume = vol; -// _s->_sound_volume_master = vol; for (i = 0; i != 8; i++) _channel_volume_eff[i] = (_channel_volume[i] + 1) * vol >> 7; update_volumes(); @@ -1747,6 +1744,7 @@ bool Player::start_sound(int sound) return false; } } + _mt32emulate = _se->isMT32(sound); _parts = NULL; _active = true; |