Simplify gbc_sound_wave_update

This commit is contained in:
twinaphex 2014-12-09 19:10:45 +01:00
parent a6905d9da2
commit 109ba4d286
1 changed files with 2 additions and 8 deletions

10
sound.c
View File

@ -464,14 +464,8 @@ void update_gbc_sound(u32 cpu_ticks)
gs = gbc_sound_channel + 2;
if(gbc_sound_wave_update)
{
if(gs->wave_bank == 1)
{
gbc_sound_load_wave_ram(1);
}
else
{
gbc_sound_load_wave_ram(0);
}
unsigned to_load_wave_bank = (gs->wave_bank == 1) ? 1 : 0;
gbc_sound_load_wave_ram(to_load_wave_bank);
gbc_sound_wave_update = 0;
}