Simplify gbc_sound_wave_update
This commit is contained in:
parent
a6905d9da2
commit
109ba4d286
10
sound.c
10
sound.c
|
@ -464,14 +464,8 @@ void update_gbc_sound(u32 cpu_ticks)
|
||||||
gs = gbc_sound_channel + 2;
|
gs = gbc_sound_channel + 2;
|
||||||
if(gbc_sound_wave_update)
|
if(gbc_sound_wave_update)
|
||||||
{
|
{
|
||||||
if(gs->wave_bank == 1)
|
unsigned to_load_wave_bank = (gs->wave_bank == 1) ? 1 : 0;
|
||||||
{
|
gbc_sound_load_wave_ram(to_load_wave_bank);
|
||||||
gbc_sound_load_wave_ram(1);
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
gbc_sound_load_wave_ram(0);
|
|
||||||
}
|
|
||||||
|
|
||||||
gbc_sound_wave_update = 0;
|
gbc_sound_wave_update = 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue