aboutsummaryrefslogtreecommitdiff
path: root/sdl
diff options
context:
space:
mode:
authorTakamichi Horikawa <takamichiho@gmail.com>2017-12-27 09:38:55 +0900
committerTakamichi Horikawa <takamichiho@gmail.com>2017-12-27 09:38:55 +0900
commit89dea5438266ef3389e5e86310d778c64bb6b59c (patch)
treec97a7438f8e19f37c73ad338c91d6719427de913 /sdl
parentf774afc5387887f4ce8067502412f5f64899632f (diff)
updated sdl
Diffstat (limited to 'sdl')
-rw-r--r--sdl/main.c7
-rw-r--r--sdl/unix/Makefile4
2 files changed, 8 insertions, 3 deletions
diff --git a/sdl/main.c b/sdl/main.c
index f4bd752..1fcdd9a 100644
--- a/sdl/main.c
+++ b/sdl/main.c
@@ -153,8 +153,13 @@ int main(int argc, char **argv) {
return 1;
}
- g.fp = fmdsp_pacc_init(pc, &pacc);
+ g.fp = fmdsp_pacc_alloc();
if (!g.fp) {
+ SDL_Log("Cannot allocate fmdsp\n");
+ SDL_Quit();
+ return 1;
+ }
+ if (!fmdsp_pacc_init(g.fp, pc, &pacc)) {
SDL_Log("Cannot initialize fmdsp\n");
SDL_Quit();
return 1;
diff --git a/sdl/unix/Makefile b/sdl/unix/Makefile
index 274f40d..f7f7599 100644
--- a/sdl/unix/Makefile
+++ b/sdl/unix/Makefile
@@ -16,8 +16,8 @@ OBJS+=fft.o
TARGET:=fmplayersdl
CFLAGS:=-Wall -Wextra -O2 -g
-CFLAGS+=-DPACC_GL_3
-#CFLAGS+=-DPACC_GL_ES
+#CFLAGS+=-DPACC_GL_3
+CFLAGS+=-DPACC_GL_ES
#CFLAGS+=-DPACC_GL_ES -DPACC_GL_3
CFLAGS+=-I.. -I../..
CFLAGS+=$(shell $(SDLCONFIG) --cflags)