mirror of
https://github.com/libretro/scummvm.git
synced 2025-03-04 01:07:22 +00:00
SCI: Fix digital track regression from r52662.
svn-id: r52666
This commit is contained in:
parent
f446dbc8d5
commit
8bbbcfe5b8
@ -512,7 +512,6 @@ class SoundResource {
|
||||
public:
|
||||
struct Channel {
|
||||
byte number;
|
||||
bool isRhythm;
|
||||
byte poly;
|
||||
uint16 prio;
|
||||
uint16 size;
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user