Magic numbers for sound freq changed to defines

This commit is contained in:
Jasmine Iwanek
2022-11-06 23:45:35 -05:00
parent ba7e359335
commit e39dde3413
15 changed files with 36 additions and 23 deletions

View File

@@ -202,7 +202,7 @@ void
mt32_poll(void)
{
midi_pos++;
if (midi_pos == 48000 / RENDER_RATE) {
if (midi_pos == SOUND_FREQ / RENDER_RATE) {
midi_pos = 0;
thread_set_event(event);
}