pelya / commandergenius

Port of SDL library and several games to the Android OS.
http://libsdl-android.sourceforge.net/
GNU Lesser General Public License v2.1
530 stars 248 forks source link

Rebuilding SDL_Sound #36

Closed moocow1452 closed 9 years ago

moocow1452 commented 9 years ago

I'm trying to build SDL_Sound for Android, specifically, a patched model for MKXP, as it's part of the sound system that the project uses along with fluidsynth etc. (https://github.com/Ancurio/mkxp) This project seems to be one of the better ones for working with SDL_Sound, so I'm wondering if I can use these tools to build SDL_Sound for SDL2, include the patches, and have a library to build other projects with.

gerstrong commented 9 years ago

I don't get it, is this some kind of ad?

Commander Genius has nothing to do with MKXP. What do you want to do with SDL_Sound anyways. Ever tried SDL_Mixer?

Am 12.11.2014 um 04:51 schrieb moocow1452:

I'm trying to build SDL_Sound for Android, specifically, a patched model for MKXP, as it's part of the sound system that the project uses along with fluidsynth etc. (https://github.com/Ancurio/mkxp) This project seems to be one of the better ones for working with SDL_Sound, so I'm wondering if I can use these tools to build SDL_Sound for SDL2, include the patches, and have a library to build other projects with.

— Reply to this email directly or view it on GitHub https://github.com/pelya/commandergenius/issues/36.

moocow1452 commented 9 years ago

No, forgive me for being unclear, but I wanted to know what some of the build processes were for SDL_Sound since commander genius has Android build scripts that seem to incorperate it into a bigger SDL.so as opposed to it's own specifix library. Do any of you happen to know how that works, since MKXP requires an SDL_Sound built around SDL2, and I was having trouble doing the work from the Android side of the equation. On Nov 11, 2014 11:58 PM, "Gerhard Stein" notifications@github.com wrote:

I don't get it, is this some kind of ad?

Commander Genius has nothing to do with MKXP. What do you want to do with SDL_Sound anyways. Ever tried SDL_Mixer?

Am 12.11.2014 um 04:51 schrieb moocow1452:

I'm trying to build SDL_Sound for Android, specifically, a patched model for MKXP, as it's part of the sound system that the project uses along with fluidsynth etc. (https://github.com/Ancurio/mkxp) This project seems to be one of the better ones for working with SDL_Sound, so I'm wondering if I can use these tools to build SDL_Sound for SDL2, include the patches, and have a library to build other projects with.

— Reply to this email directly or view it on GitHub https://github.com/pelya/commandergenius/issues/36.

— Reply to this email directly or view it on GitHub https://github.com/pelya/commandergenius/issues/36#issuecomment-62670379 .

pelya commented 9 years ago

The repository for SDL 1.2 for Android is indeed called commandergenius for historical reasons, there is another commandergenius repository, with actual Commander Genius game sources, so a bit of confusion here.

Anyway, it should be enough to copy sdl_sound, flac, ogg, vorbis and mikmod directories to your repisitory, and edit Android.mk for sdl_sound to remove SDL version variable. It only uses SDL for basic types, so it should compile with SDL2. Also, add them to APP_MODULES in your Application.mk, and don't forget to do System.LoadLibrary() for each of them in correct order in your Java code. On Nov 12, 2014 7:05 AM, "moocow1452" notifications@github.com wrote:

No, forgive me for being unclear, but I wanted to know what some of the build processes were for SDL_Sound since commander genius has Android build scripts that seem to incorperate it into a bigger SDL.so as opposed to it's own specifix library. Do any of you happen to know how that works, since MKXP requires an SDL_Sound built around SDL2, and I was having trouble doing the work from the Android side of the equation. On Nov 11, 2014 11:58 PM, "Gerhard Stein" notifications@github.com wrote:

I don't get it, is this some kind of ad?

Commander Genius has nothing to do with MKXP. What do you want to do with SDL_Sound anyways. Ever tried SDL_Mixer?

Am 12.11.2014 um 04:51 schrieb moocow1452:

I'm trying to build SDL_Sound for Android, specifically, a patched model for MKXP, as it's part of the sound system that the project uses along with fluidsynth etc. (https://github.com/Ancurio/mkxp) This project seems to be one of the better ones for working with SDL_Sound, so I'm wondering if I can use these tools to build SDL_Sound for SDL2, include the patches, and have a library to build other projects with.

— Reply to this email directly or view it on GitHub https://github.com/pelya/commandergenius/issues/36.

— Reply to this email directly or view it on GitHub < https://github.com/pelya/commandergenius/issues/36#issuecomment-62670379> .

— Reply to this email directly or view it on GitHub https://github.com/pelya/commandergenius/issues/36#issuecomment-62670843 .