From e79404cb21eac82cd046acf9e10d05fa0eb41003 Mon Sep 17 00:00:00 2001 From: vampi Date: Sat, 16 Nov 2024 20:01:16 +0200 Subject: [PATCH] mdx driver syntax cleanup --- mdx_driver.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/mdx_driver.c b/mdx_driver.c index c64ff87..0e2a6a5 100644 --- a/mdx_driver.c +++ b/mdx_driver.c @@ -175,11 +175,8 @@ static void mdx_driver_note_on(struct mdx_driver *r, int track_num) { } } else printf("Note on !v %d\n", track_num); } - } else { - if(track->note < 96 && r->pdx_file) { - adpcm_driver_play(r->adpcm_driver, track_num - 8, r->pdx_file->samples[track->note].data, r->pdx_file->samples[track->note].len, track->adpcm_freq_num, mdx_adpcm_volume_from_opm(track->opm_volume + r->fade_value)); - } - } + } else if(track->note < 96 && r->pdx_file) + adpcm_driver_play(r->adpcm_driver, track_num - 8, r->pdx_file->samples[track->note].data, r->pdx_file->samples[track->note].len, track->adpcm_freq_num, mdx_adpcm_volume_from_opm(track->opm_volume + r->fade_value)); } static void mdx_driver_note_off(struct mdx_driver *driver, int track_num) {