If you're looking for a portable audio solution, SoLoud might be a better 
option than OpenAL btw. I found OpenAL's multiplatform support quite 
lacking (e.g. on Windows and Android).

SoLoud is very lean, the various platform-backends are extremely simple, 
and it has a nice medium-level API:

https://github.com/jarikomppa/soloud

For HTML5 I'm using SoLoud's SDL1 backend (implemented here: 
https://github.com/jarikomppa/soloud/blob/master/src/backend/sdl_static/soloud_sdl_static.cpp).
 
I was considering adding an emscripten-specific backend to SoLoud but found 
the client-size overhead of the SDL1 wrapper to be small enough that a 
separate backend wasn't worth it IMHO.

Cheers,
-Floh

Am Mittwoch, 30. August 2017 06:11:24 UTC+8 schrieb Alon Zakai:
>
> Another option is OpenAL.
>
> On Tue, Aug 29, 2017 at 11:11 AM, Александр Гурьянов <[email protected] 
> <javascript:>> 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 <[email protected] 
>> <javascript:>>:
>> > 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 [email protected] <javascript:>.
>> > 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 [email protected] <javascript:>.
>> 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 [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to