SHERLOCK: RT: Miles AdLib: circular phys. assign

circular physical assignment of FM-voices
- removed hardcoded value, that made it search from FM-voice 0
and replaced it with the total number of physical FM-voices
this makes it easier to understand the code
- added comment about why this is set (starting search at FM-voice 0)
This commit is contained in:
Martin Kiewitz 2015-06-26 10:38:49 +02:00
parent 258b5adb9a
commit c167a293ab

View File

@ -255,7 +255,8 @@ MidiDriver_Miles_AdLib::MidiDriver_Miles_AdLib(Audio::Mixer *mixer, InstrumentEn
// Older Miles Audio drivers did not do a circular assign for physical FM-voices
// Sherlock Holmes 2 used the circular assign
circularPhysicalAssignment = true;
circularPhysicalAssignmentFmVoice = 255;
// this way the first circular physical FM-voice search will start at FM-voice 0
circularPhysicalAssignmentFmVoice = SHERLOCK_MILES_ADLIB_PHYSICAL_FMVOICES_COUNT;
resetData();
}