mirror of https://github.com/mgba-emu/mgba.git
GB Audio: Fix changing channel properties mid-frame (fixes #2655)
This commit is contained in:
parent
1807442577
commit
9adad40b1c
|
@ -377,11 +377,13 @@ void GBAudioWriteNR44(struct GBAudio* audio, uint8_t value) {
|
|||
}
|
||||
|
||||
void GBAudioWriteNR50(struct GBAudio* audio, uint8_t value) {
|
||||
GBAudioRun(audio, mTimingCurrentTime(audio->timing), 0x2);
|
||||
audio->volumeRight = GBRegisterNR50GetVolumeRight(value);
|
||||
audio->volumeLeft = GBRegisterNR50GetVolumeLeft(value);
|
||||
}
|
||||
|
||||
void GBAudioWriteNR51(struct GBAudio* audio, uint8_t value) {
|
||||
GBAudioRun(audio, mTimingCurrentTime(audio->timing), 0x2);
|
||||
audio->ch1Right = GBRegisterNR51GetCh1Right(value);
|
||||
audio->ch2Right = GBRegisterNR51GetCh2Right(value);
|
||||
audio->ch3Right = GBRegisterNR51GetCh3Right(value);
|
||||
|
|
Loading…
Reference in New Issue