diff options
| author | Willem Jan Palenstijn | 2014-10-02 18:23:00 +0200 | 
|---|---|---|
| committer | Willem Jan Palenstijn | 2015-02-14 16:06:55 +0100 | 
| commit | f1e34f11d742ef32ed48926092d93f3448732f2e (patch) | |
| tree | 9cfcaba324420e51d536d8568b3c8ada6612a40e | |
| parent | 84d2414a7dceca9d5140936667aae05fbbfdcf99 (diff) | |
| download | scummvm-rg350-f1e34f11d742ef32ed48926092d93f3448732f2e.tar.gz scummvm-rg350-f1e34f11d742ef32ed48926092d93f3448732f2e.tar.bz2 scummvm-rg350-f1e34f11d742ef32ed48926092d93f3448732f2e.zip  | |
SCI: Initialize voice counts in SCI1+
| -rw-r--r-- | engines/sci/sound/midiparser_sci.cpp | 7 | 
1 files changed, 7 insertions, 0 deletions
diff --git a/engines/sci/sound/midiparser_sci.cpp b/engines/sci/sound/midiparser_sci.cpp index c0b4f3122e..7ee9cc9d28 100644 --- a/engines/sci/sound/midiparser_sci.cpp +++ b/engines/sci/sound/midiparser_sci.cpp @@ -360,6 +360,13 @@ void MidiParser_SCI::sendInitCommands() {  					sendToDriver(0xB0 | i, 0x4B, voiceCount);  				}  			} +		} else { +			for (int i = 0; i < _track->channelCount; ++i) { +				byte voiceCount = _track->channels[i].poly; +				byte num = _track->channels[i].number; +				// TODO: Should we skip the control channel? +				sendToDriver(0xB0 | num, 0x4B, voiceCount); +			}  		}  	}  | 
