Skip to content

Commit

Permalink
mdx driver syntax cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
vampirefrog committed Nov 16, 2024
1 parent f84bcb5 commit e79404c
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions mdx_driver.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit e79404c

Please sign in to comment.