Using more than one FM_OPL object (experimental)
|Reported by:||eriktorbjorn||Owned by:|
|Game:||Indiana Jones 4|
This patch started out as an attempt to fix bug #2545447 ("MI2: Waterfall sound breaks up") by using two FM_OPL objects instead of one. In other words, it simulates having two AdLib sound cards cooperating to play the music. However, it turns out that it doesn't fix the bug, it just postpones it a bit. It also turned out that the patch only works with MAME's emulator, not DOSBox's. That's when I decided not to finish the patch, so right now you have to set the _numCards variable to either 1 or 2 and then recompile.
On the other hand, it does keep the music from cutting out during the Fate of Atlantis endgame, so I didn't want to throw it away either. But maybe there's a simpler way to achieve the same thing? DOSBox's emulator has some references to OPL3, and I guess using that would double the number of channels too. (OPL3 has some other features too, but I don't know if any of the games that ScummVM supports know how to take advantage of that.)
Ticket imported from: #2827392. Ticket imported from: patches/1163.