Skip to content

Commit

Permalink
SHERLOCK: RT: Miles AdLib: circular phys. assign
Browse files Browse the repository at this point in the history
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)
  • Loading branch information
Martin Kiewitz committed Jun 26, 2015
1 parent 258b5ad commit c167a29
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion engines/sherlock/tattoo/drivers/tattoo_adlib.cpp
Expand Up @@ -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();
}
Expand Down

0 comments on commit c167a29

Please sign in to comment.