Cleaner AudioScript_SequenceChannelProcessScript Match (#1662)

* Cleaner AudioScript_SequenceChannelProcessScript

* cadmic suggestion
This commit is contained in:
inspectredc 2024-07-20 18:46:47 +01:00 committed by GitHub
parent 5e70e16402
commit d209ff5009
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 8 additions and 10 deletions

View File

@ -1519,16 +1519,14 @@ void AudioScript_SequenceChannelProcessScript(SequenceChannel* channel) {
case 0xE7: // channel:
cmdArgU16 = (u16)cmdArgs[0];
data = &seqPlayer->seqData[cmdArgU16];
channel->muteFlags = data[0];
data += 3;
channel->noteAllocPolicy = data[-2];
AudioScript_SetChannelPriorities(channel, data[-1]);
channel->transposition = (s8)data[0];
data += 4;
channel->newPan = data[-3];
channel->panChannelWeight = data[-2];
channel->targetReverbVol = data[-1];
channel->reverbIndex = data[0];
channel->muteFlags = *data++;
channel->noteAllocPolicy = *data++;
AudioScript_SetChannelPriorities(channel, *data++);
channel->transposition = (s8)*data++;
channel->newPan = *data++;
channel->panChannelWeight = *data++;
channel->targetReverbVol = *data++;
channel->reverbIndex = *data++;
//! @bug: Not marking reverb state as changed
channel->changes.s.pan = true;
break;