SCI/newmusic: added filter support for kq4early and adlib

svn-id: r46563
This commit is contained in:
Martin Kiewitz 2009-12-25 18:59:15 +00:00
parent f9754ca68b
commit 2f5f625b98
13 changed files with 66 additions and 21 deletions

View file

@ -1942,7 +1942,15 @@ int SoundResource::getChannelFilterMask(int hardwareMask) {
switch (_soundVersion) {
case SCI_VERSION_0_EARLY:
channelMask = 0xFFFF;
data++; // Skip over digital sample flag
for (int channelNr = 0; channelNr < 16; channelNr++) {
channelMask = channelMask >> 1;
if (*data & hardwareMask) {
// this Channel is supposed to get played for hardware
channelMask |= 0x8000;
}
data++;
}
break;
case SCI_VERSION_0_LATE: