aboutsummaryrefslogtreecommitdiff
path: root/engines/glk/advsys
diff options
context:
space:
mode:
authorathrxx2019-04-28 14:44:22 +0200
committerathrxx2019-07-17 17:38:26 +0200
commit77dbefb907125481ffc83f29da4627564612ebf1 (patch)
treee7191f7ccbbacd1ab3ebecbbcc85dfdb87123489 /engines/glk/advsys
parentd988e40e259871d8f9a6e36016b99d68a6167fcc (diff)
downloadscummvm-rg350-77dbefb907125481ffc83f29da4627564612ebf1.tar.gz
scummvm-rg350-77dbefb907125481ffc83f29da4627564612ebf1.tar.bz2
scummvm-rg350-77dbefb907125481ffc83f29da4627564612ebf1.zip
SCI: (CMS sound driver) - add support for SCI0
I haven't found an elegant and non-intrusive way to squeeze SCI0 support into LordHoto's existing code. The drivers are too different. So I made some rearrangements. The basic mechanisms of LordHoto's SCI1 code should remain the same as before, though. I only introduced some more classes, moved some code into these classes and renamed some things (mainly for myself, so as not to get confused). I fixed two voice mapping bugs in the existing driver code. The first bug in bindVocies() effectively hindered the driver from playing anything at all when the CMS_DISABLE_VOICE_MAPPING #define wasn't set (_voice[i].channel == 0xFF instead of _voice[i].channel != 0xFF). The second bug in unbindVoices() was not a complete show stopper, but the function simply did not "unbind the voice". The line which does the actual removal of the channel assignment was missing. The SCI0 driver portions have been tested with: PQ2, KQ4, LSL3, QFG1, ICE and COC. SCI_0_EARLY versions apparently don't support the CMS. At least I haven't seen a driver file so far. And there seems to be no no instrument patch resource. Although the latter issue needn't necessarily be one, since the patch data array in the driver is actually preset with data (which gets overwritten as soon as a patch file is loaded). Maybe this would work for SCI_0_EARLY. However, I haven't tested this, since I really would have have a look at a driver file first if one actually exists. For now, I have limited the driver to SCI_0_LATE. SCI1 has been tested with KQ5 and LSL5 (not extensively, just to see whether anything got broken and whether my voice mapping fixes work).
Diffstat (limited to 'engines/glk/advsys')
0 files changed, 0 insertions, 0 deletions