aboutsummaryrefslogtreecommitdiff
path: root/sdl/main.c
diff options
context:
space:
mode:
authorTakamichi Horikawa <takamichiho@gmail.com>2017-12-02 14:42:47 +0900
committerTakamichi Horikawa <takamichiho@gmail.com>2017-12-02 14:42:47 +0900
commit00f1d8d6cacf48139b976f3a25c040d51e1abe74 (patch)
tree92462ead9fa0483e885f361adf7ed4e72217f219 /sdl/main.c
parente3026d0792b4ff154cc6a53bfb8120ede6bf6197 (diff)
updated sdl
Diffstat (limited to 'sdl/main.c')
-rw-r--r--sdl/main.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/sdl/main.c b/sdl/main.c
index f4bd752..4000e26 100644
--- a/sdl/main.c
+++ b/sdl/main.c
@@ -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);