Skip to content

Commit

Permalink
Fixed bug 2600 - Patch: TiMidity support in Android
Browse files Browse the repository at this point in the history
beuc

TiMidity compiles out of the box on Android with the attached patch to Android.mk.

Users can do something like:
  SDL_setenv("TIMIDITY_CFG", "/data/data/my.package/files/timidity.cfg", 0);
to point to their local sound patches.
  • Loading branch information
slouken committed Jun 22, 2014
1 parent ad40547 commit 22d7905
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Android.mk
Expand Up @@ -26,10 +26,11 @@ OGG_LIBRARY_PATH := external/libogg-1.3.1
VORBIS_LIBRARY_PATH := external/libvorbisidec-1.2.1


LOCAL_C_INCLUDES := $(LOCAL_PATH)
LOCAL_CFLAGS := -DWAV_MUSIC
LOCAL_C_INCLUDES := $(LOCAL_PATH) $(LOCAL_PATH)/timidity
LOCAL_CFLAGS := -DWAV_MUSIC -DMID_MUSIC -DUSE_TIMIDITY_MIDI

LOCAL_SRC_FILES := $(notdir $(filter-out %/playmus.c %/playwave.c, $(wildcard $(LOCAL_PATH)/*.c)))
LOCAL_SRC_FILES := $(notdir $(filter-out %/playmus.c %/playwave.c, $(wildcard $(LOCAL_PATH)/*.c))) \
$(subst $(LOCAL_PATH)/,,$(wildcard $(LOCAL_PATH)/timidity/*.c))

LOCAL_LDLIBS :=
LOCAL_STATIC_LIBRARIES :=
Expand Down

0 comments on commit 22d7905

Please sign in to comment.