Sound in SDL

hi,

I hope we could talk here about developement of SDL. If it isn’t the case,
sorry.

I need to play mp3 and wave sounds… And on this point, i find SDL not
easy (not clean too). The API is too low level. It is unbelievale to have one
sound canal. Yes i know: we could use the SDL_mixer and smpeg. But theses
libraries complicates the developement with SDL. My point of view is that SDL
must be native multi canals! So integrate smpeg or mikmod with our proper sound
generator could be cleaner and easier… Smpeg or mikmod reserved one canal,
and we could play waves sound in other canal…
My point of view is that we couldn’t use just the mono canal sound of SDL (If
hardware could mixe, we must use it…)

If you think that it is correct with the “SDL spirit”, i purpose
to use the mixer as basis to specify & develop a clean sound API,
and next code it…

Ellis____________________________________________________
Laurent Mallet aka Ellis ( programmer of spaceracer )
laurent_mallet at hotmail.com

Ellis wrote:

sound canal. Yes i know: we could use the SDL_mixer and smpeg. But theses
libraries complicates the developement with SDL.

Why?
All you have to do is add another macro to configure.in.

bye…

Tim jansen wrote:

sound canal. Yes i know: we could use the SDL_mixer and smpeg. But theses
libraries complicates the developement with SDL.

Why?
All you have to do is add another macro to configure.in.

bye…
Yes, i know it and i have done it… But this solution doesn’t satisfy me:

1/ If a player would test my program, he must install 3 libraries (SDL,
SDL_mixer,smpeg in correct order!!!) . If no SDL_mixer is present, must i play
one sound or mixe by myself??? This method creates #define in all the code…

2/ SDL could play without mixer one sound at time: it is like using 256 colors
mode.

3/ How to use hardware mixer without bypass the SDL sound?

4/ How to mixe two mp3 and two xm?

5/ Giving a mixer in SDL (not in an separate package) don’t let people
re-invent the wheel and simplify code.

  Ellis-- 

Laurent Mallet aka Ellis
laurent_mallet at hotmail.com