kometbomb / klystron

34 stars 7 forks source link

replayer lib for Android #7

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Is there any way to compile the replayer library for Android? The SDL stuff is 
not needed at all. Below is my Android.mk file, I think it should work like 
that. It complains about SDL stuff. Would it be possible to change it so that 
by using some specific cflags it wouldn't use SDL at all?

What I want to achieve is 1) Load a song 2) use the fillbuffer function to get 
samples.

I'm using GCC 4.6

include $(CLEAR_VARS)

LOCAL_MODULE := klystron
LOCAL_LDLIBS := -llog -lz
LOCAL_CFLAGS = -std=gnu99 -O3 -DNOSDL_MIXER -DSTEREOOUTPUT -DUSENATIVEAPIS
LOCAL_ARM_MODE := arm

LOCAL_SRC_FILES := \
    klys/lib/ksnd.c \
    klys/snd/cyd.c \
    klys/snd/cydchr.c \
    klys/snd/cydcrush.c \
    klys/snd/cydentry.c \
    klys/snd/cydflt.c \
    klys/snd/cydfm.c \
    klys/snd/cydfx.c \
    klys/snd/cydosc.c \
    klys/snd/cydrvb.c \
    klys/snd/cydwave.c \
    klys/snd/freqs.c \
    klys/snd/music.c \
    klys/snd/pack.c

LOCAL_C_INCLUDES := \
        $(LOCAL_PATH)/ \
        $(LOCAL_PATH)/klys \
        $(LOCAL_PATH)/klys/lib \
        $(LOCAL_PATH)/klys/snd \

include $(BUILD_SHARED_LIBRARY) 

Original issue reported on code.google.com by droid...@gmail.com on 12 Jul 2014 at 10:50