Fix swapped wave channel volume

This commit is contained in:
Noah Sweilem 2023-06-16 19:04:12 -07:00
parent ae855d470d
commit 4213524286
1 changed files with 1 additions and 1 deletions

View File

@ -1768,7 +1768,7 @@ uint8_t GB_get_channel_volume(GB_gameboy_t *gb, GB_channel_t channel) {
return gb->apu.square_channels[channel].current_volume;
case GB_WAVE:
return (const uint8_t[]){0, 4, 8, 0, 0xF}[gb->apu.wave_channel.shift];
return (const uint8_t[]){0xF, 8, 4, 0, 0}[gb->apu.wave_channel.shift];
case GB_NOISE:
return gb->apu.noise_channel.current_volume;