SCI: Fix digital track regression from r52662.

svn-id: r52666
This commit is contained in:
Walter van Niftrik 2010-09-09 23:01:51 +00:00
parent f446dbc8d5
commit 8bbbcfe5b8
2 changed files with 3 additions and 3 deletions

View File

@ -512,7 +512,6 @@ class SoundResource {
public:
struct Channel {
byte number;
bool isRhythm;
byte poly;
uint16 prio;
uint16 size;

View File

@ -664,8 +664,9 @@ SoundResource::SoundResource(uint32 resourceNr, ResourceManager *resMan, SciVers
channel->data = resource->data + dataOffset;
channel->size = READ_LE_UINT16(data + 4);
channel->curPos = 0;
channel->number = *channel->data & 0xf;
channel->isRhythm = *channel->data & 0x20;
// FIXME: number contains (low nibble) channel and (high nibble) flags
// 0x20 is set on rhythm channels to prevent remapping
channel->number = *channel->data;
channel->poly = *(channel->data + 1);
channel->time = channel->prev = 0;
channel->data += 2; // skip over header