[Scummvm-cvs-logs] SF.net SVN: scummvm:[46647] scummvm/trunk/engines/sci/sfx/soundcmd.cpp
thebluegr at users.sourceforge.net
thebluegr at users.sourceforge.net
Sun Dec 27 15:25:25 CET 2009
Revision: 46647
http://scummvm.svn.sourceforge.net/scummvm/?rev=46647&view=rev
Author: thebluegr
Date: 2009-12-27 14:25:25 +0000 (Sun, 27 Dec 2009)
Log Message:
-----------
cmdGetPolyphony always returns true in SCI0, according to specs
Modified Paths:
--------------
scummvm/trunk/engines/sci/sfx/soundcmd.cpp
Modified: scummvm/trunk/engines/sci/sfx/soundcmd.cpp
===================================================================
--- scummvm/trunk/engines/sci/sfx/soundcmd.cpp 2009-12-27 14:20:46 UTC (rev 46646)
+++ scummvm/trunk/engines/sci/sfx/soundcmd.cpp 2009-12-27 14:25:25 UTC (rev 46647)
@@ -621,7 +621,10 @@
#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
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Scummvm-git-logs
mailing list