diff options
Diffstat (limited to 'sdl/main.c')
-rw-r--r-- | sdl/main.c | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -152,13 +152,17 @@ int main(int argc, char **argv) { SDL_Quit(); return 1; } - - g.fp = fmdsp_pacc_init(pc, &pacc); + g.fp = fmdsp_pacc_alloc(); if (!g.fp) { SDL_Log("Cannot initialize fmdsp\n"); SDL_Quit(); return 1; } + if (!fmdsp_pacc_init(g.fp, pc, &pacc)) { + SDL_Log("Cannot initialize fmdsp\n"); + SDL_Quit(); + return 1; + } fmdsp_pacc_set(g.fp, &g.work, &g.opna, &g.fftin); fmplayer_font_rom_load(&g.font16); fmdsp_pacc_set_font16(g.fp, &g.font16); |