diff options
author | twinaphex | 2014-12-09 19:10:45 +0100 |
---|---|---|
committer | twinaphex | 2014-12-09 19:10:45 +0100 |
commit | 109ba4d286bd2b6ff079347607571b6859c86199 (patch) | |
tree | 70fc0f2a4440c4a1b7af7fe37317bdb94230f2f4 | |
parent | a6905d9da21e16b1b89e2fcbdea64ce23b90b43d (diff) | |
download | picogpsp-109ba4d286bd2b6ff079347607571b6859c86199.tar.gz picogpsp-109ba4d286bd2b6ff079347607571b6859c86199.tar.bz2 picogpsp-109ba4d286bd2b6ff079347607571b6859c86199.zip |
Simplify gbc_sound_wave_update
-rw-r--r-- | sound.c | 10 |
1 files changed, 2 insertions, 8 deletions
@@ -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; } |