Playing multiple sounds at the same time

Is it possible to play multiple sounds at the same time, when using
threads to play them?

And how I can stop sdl from always creating two files “sstderr.txt” and
"stdout.txt", probably some sort of debug?

Is there a static lib/dll available? So I won’t have to export another
.dll extra with my project.

Thanks.

Is it possible to play multiple sounds at the same time, when using threads
to play them?

I don’t know if SDL_mixer is thread safe, but you can use some kind of
threads syncronizations to play multiple sounds on SDL_mixer.

As an alternative, you can use the SDL events loop to post a user
message from any thread to start playing the song from the main event
loop.

And how I can stop sdl from always creating two files “sstderr.txt” and
"stdout.txt", probably some sort of debug?

Check the FAQ:

http://www.libsdl.org/cgi/docwiki.cgi/FAQ_Console

Is there a static lib/dll available? So I won’t have to export another .dll
extra with my project.

SDL 1.2 is LGPL. From a license point of view you are forced to
distribute your non-GPL software with SDL as a DLL.On Tue, Aug 21, 2012 at 9:53 AM, Digital wrote:


Alejandro Santos

SDL2 has been changed to the more permissive zlib license; if static
linking is a necessity, you may want to consider targeting the newer
library instead of 1.2. Though there’s no stable release yet, so you’d
have to build your own Windows libraries from the latest hg source.On Wed, Aug 22, 2012 at 1:10 AM, Alejandro Santos wrote:

On Tue, Aug 21, 2012 at 9:53 AM, Digital wrote:

Is it possible to play multiple sounds at the same time, when using threads
to play them?

I don’t know if SDL_mixer is thread safe, but you can use some kind of
threads syncronizations to play multiple sounds on SDL_mixer.

As an alternative, you can use the SDL events loop to post a user
message from any thread to start playing the song from the main event
loop.

And how I can stop sdl from always creating two files “sstderr.txt” and
"stdout.txt", probably some sort of debug?

Check the FAQ:

http://www.libsdl.org/cgi/docwiki.cgi/FAQ_Console

Is there a static lib/dll available? So I won’t have to export another .dll
extra with my project.

SDL 1.2 is LGPL. From a license point of view you are forced to
distribute your non-GPL software with SDL as a DLL.


Alejandro Santos


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org