diff options
author | Filippos Karapetis | 2009-12-27 14:25:25 +0000 |
---|---|---|
committer | Filippos Karapetis | 2009-12-27 14:25:25 +0000 |
commit | fbf1bada24e9ef415206780d4b3dc963e258e193 (patch) | |
tree | 51db9cf8355591f4a7f402345d0276bb62e89e47 | |
parent | 3936861b7c40912123c687ed5999639cb6f00787 (diff) | |
download | scummvm-rg350-fbf1bada24e9ef415206780d4b3dc963e258e193.tar.gz scummvm-rg350-fbf1bada24e9ef415206780d4b3dc963e258e193.tar.bz2 scummvm-rg350-fbf1bada24e9ef415206780d4b3dc963e258e193.zip |
cmdGetPolyphony always returns true in SCI0, according to specs
svn-id: r46647
-rw-r--r-- | engines/sci/sfx/soundcmd.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/engines/sci/sfx/soundcmd.cpp b/engines/sci/sfx/soundcmd.cpp index ea6cca69b7..3e5e0f31a9 100644 --- a/engines/sci/sfx/soundcmd.cpp +++ b/engines/sci/sfx/soundcmd.cpp @@ -621,7 +621,10 @@ void SoundCommandParser::cmdGetPolyphony(reg_t obj, int16 value) { #ifdef USE_OLD_MUSIC_FUNCTIONS _acc = make_reg(0, _state->sfx_get_player_polyphony()); #else - _acc = make_reg(0, _music->soundGetVoices()); + if (_soundVersion <= SCI_VERSION_0_LATE) + _acc = make_reg(0, 1); // Check if the sound driver was installed properly (always true) + else + _acc = make_reg(0, _music->soundGetVoices()); // Get the number of voices #endif } |