Hmm, yeah, I guess it's not that easy. The actual implementations are
completely separate though, so it could work, but I guess something would
need to be figured out with those includes.

I agree that the best thing would be if someone volunteered to port
SDL2_mixer.

On Fri, Sep 1, 2017 at 8:06 AM, Goran Milovanovic <goranmilov...@gmail.com>
wrote:

> I think it would be worthwhile: A lot of SDL projects usually leverage the
> extra SDL libraries for common requirements like image loading, font
> rendering, and audio mixing. With SDL1, where all those libraries are
> supported, developers don't have to rewrite their code, but for SDL2, where
> there's no mixer support, developers have to go hunting for a new audio
> system. It wouldn't be as annoying if there were no other SDL2 library
> ports, but since there are basically ports for everything else, it becomes
> a missing piece that's forcing the developer to do significantly more work,
> just to have basic audio capability.
>
> If it's possible to use SDL1 audio with SDL2, that would be fine, but I
> don't know how to set that up. I tried simply compiling:
>
> > em++ $SRC_DIR/*.cpp -I $INC_DIR -s WASM=1 -s USE_SDL=2 -s
> USE_SDL_IMAGE=2 -o out.bc
>
> But that results in an error:
>
> > fatal error: 'SDL_mixer.h' file not found
> > #include "SDL_mixer.h"
>
>
> On Thursday, August 31, 2017 at 1:34:49 PM UTC-4, Alon Zakai wrote:
>
>>
>>
>> On Thu, Aug 31, 2017 at 6:45 AM, Goran Milovanovic <goranm...@gmail.com>
>> wrote:
>>
>>> As Floh mentioned, it seems to have substandard multiplatform support,
>>> so it's not really a good solution for me.
>>>
>>> What I really find hard to understand, is why there's no SDL2_mixer
>>> port, because, as I noted before, there's a port for everything else, and
>>> obviously SDL_mixer_1.2 is supported internally, so it seems like it should
>>> be possible to make SDL2_mixer work with emscripten.
>>>
>>
>> It should be possible, yeah. I think it's just that the other solutions
>> are good enough for most people, so no one was motivated to port SDL2_mixer
>> yet. But it would be great if someone did.
>>
>> Btw, it should be possible to mix SDL1 audio with everything else from
>> SDL2, the implementations should not collide (but I didn't verify this).
>>
>>
>>>
>>> On Tuesday, August 29, 2017 at 6:11:24 PM UTC-4, Alon Zakai wrote:
>>>>
>>>> Another option is OpenAL.
>>>>
>>>> On Tue, Aug 29, 2017 at 11:11 AM, Александр Гурьянов <caii...@gmail.com
>>>> > wrote:
>>>>
>>>>> I prefer to use SDL_mixer_1.2 it works fast. Also it supports ogg, mp3
>>>>> panning and dinstance.
>>>>>
>>>>> 2017-08-29 21:55 GMT+07:00 Goran Milovanovic <goranm...@gmail.com>:
>>>>> > I would like to compile a project that's built on top of SDL2
>>>>> libraries. One
>>>>> > of those libraries is SDL2_mixer, which seems to have no emscripten
>>>>> port ...
>>>>> > I find that strange, because there's a port for everything else (even
>>>>> > SDL2_net), and audio seems like one of the more fundamental
>>>>> requirements for
>>>>> > a large number of applications.
>>>>> >
>>>>> > So, I'm just wondering why there's no port for SDL2_mixer, and what
>>>>> people
>>>>> > typically do for sound+music support (I hope it's something other
>>>>> than "use
>>>>> > SDL1").
>>>>> >
>>>>> > Thanks.
>>>>> >
>>>>> > --
>>>>> > You received this message because you are subscribed to the Google
>>>>> Groups
>>>>> > "emscripten-discuss" group.
>>>>> > To unsubscribe from this group and stop receiving emails from it,
>>>>> send an
>>>>> > email to emscripten-discuss+unsubscr...@googlegroups.com.
>>>>> > For more options, visit https://groups.google.com/d/optout.
>>>>>
>>>>> --
>>>>> You received this message because you are subscribed to the Google
>>>>> Groups "emscripten-discuss" group.
>>>>> To unsubscribe from this group and stop receiving emails from it, send
>>>>> an email to emscripten-discuss+unsubscr...@googlegroups.com.
>>>>> For more options, visit https://groups.google.com/d/optout.
>>>>>
>>>>
>>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "emscripten-discuss" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to emscripten-discuss+unsubscr...@googlegroups.com.
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>> --
> You received this message because you are subscribed to the Google Groups
> "emscripten-discuss" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to emscripten-discuss+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"emscripten-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to emscripten-discuss+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to