1
0
Fork 0
mirror of https://github.com/zeldaret/oot.git synced 2024-12-25 14:16:11 +00:00

Nicer AudioSeq_SequenceChannelProcessScript match (#1996)

* Nicer AudioSeq_SequenceChannelProcessScript match

* cadmic suggestion
This commit is contained in:
inspectredc 2024-07-19 02:56:53 +01:00 committed by GitHub
parent c1341224f9
commit e1dc4cf448
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1475,16 +1475,14 @@ void AudioSeq_SequenceChannelProcessScript(SequenceChannel* channel) {
case 0xE7:
cmdArgU16 = (u16)cmdArgs[0];
data = &seqPlayer->seqData[cmdArgU16];
channel->muteBehavior = data[0];
data += 3;
channel->noteAllocPolicy = data[-2];
AudioSeq_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->muteBehavior = *data++;
channel->noteAllocPolicy = *data++;
AudioSeq_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;