Wintermute Engine Forum

Wintermute Engine => WME Lite => Topic started by: Sothoth on April 27, 2015, 12:30:15 PM

Title: BASS vs. SDL Mixer
Post by: Sothoth on April 27, 2015, 12:30:15 PM
Hi!

I wonder if I could compile WME Lite to use SDL mixer instead of BASS library and in which platforms will be functional.

Any clues?

Thanks in advance!
Title: Re: BASS vs. SDL Mixer
Post by: HCDaniel on April 28, 2015, 08:44:30 AM
Hi!

I wonder if I could compile WME Lite to use SDL mixer instead of BASS library and in which platforms will be functional.

Any clues?

Thanks in advance!

I'm experimenting with a wmelite fork here:

https://bitbucket.org/hcdaniel/wmelite-rapaki-edition

and it has a compile time option to use SDL mixer instead of BASS. The SDL mixer has some patches (its not the "original one" anymore) which can be found here:

https://bitbucket.org/hcdaniel/wmelite-dependencies-for-linux-and-android/src/41d9d0b0857f59ef3f2b369b6f4386475eeeb38f/dependencies/SDL_mixer/?at=default

I did some spot checks on Windows, Linux and Android. Most of the functionality is there, but there will be bugs.

I'll clean it up and merge it into the original WME lite eventually.

Unfortunately I do not know how I can compile for Mac OS and iOS. No doubt that I won't have a chance to test things without the hardware, but if anybody knows how I can test that "things compile" without having a Mac, that would be great.
Title: Re: BASS vs. SDL Mixer
Post by: Sothoth on April 29, 2015, 11:56:27 AM
Hi!

I wonder if I could compile WME Lite to use SDL mixer instead of BASS library and in which platforms will be functional.

Any clues?

Thanks in advance!

I'm experimenting with a wmelite fork here:

https://bitbucket.org/hcdaniel/wmelite-rapaki-edition

and it has a compile time option to use SDL mixer instead of BASS. The SDL mixer has some patches (its not the "original one" anymore) which can be found here:

https://bitbucket.org/hcdaniel/wmelite-dependencies-for-linux-and-android/src/41d9d0b0857f59ef3f2b369b6f4386475eeeb38f/dependencies/SDL_mixer/?at=default

I did some spot checks on Windows, Linux and Android. Most of the functionality is there, but there will be bugs.

I'll clean it up and merge it into the original WME lite eventually.

Unfortunately I do not know how I can compile for Mac OS and iOS. No doubt that I won't have a chance to test things without the hardware, but if anybody knows how I can test that "things compile" without having a Mac, that would be great.

That sounds great, Daniel! I have a Mac, so if you send me the code, I'd try to compile it myself and tell you if it works ;).
Title: Re: BASS vs. SDL Mixer
Post by: HCDaniel on April 30, 2015, 08:05:32 AM
I hope you know how to compile code on a Mac, because I don't :(

At first you can try to compile the modified SDL mixer, just clone the repo here

https://bitbucket.org/hcdaniel/wmelite-dependencies-for-linux-and-android/overview

or download it here:

https://bitbucket.org/hcdaniel/wmelite-dependencies-for-linux-and-android/downloads

(download repository)

Then go into this directory:

dependencies/SDL_mixer/jni/

and try to compile using Xcode and the project files there.

If that works, combine the result with the dependencies found here:

https://bitbucket.org/MnemonicWME/wmelite/downloads

and then try to compile my wmelite fork:

https://bitbucket.org/hcdaniel/wmelite-rapaki-edition/overview

(again, clone the repo or download the code snapshot).

I don't know how to work with Xcode, so I cannot help you there. Maybe somebody else can if you run into problems.

Good luck!
Title: Re: BASS vs. SDL Mixer
Post by: Sothoth on May 01, 2015, 09:47:56 PM
Great! I'll try it and I'll tell you :).

Cheers.