Hello Gabriel,
?
it depends on your use case
In my use case, that?s tiny bits of the same music and it must be ?sample precise? to not hear glitches?between let?s say ?verse 1? and ?chorus 2?. These ?music items? could be as small as 6 seconds length.
?
If you?re playing different musics in your case, it should work well because there?s no direct transitions needed?
Is it your use case?
?
Nad> Message du 07/09/09 15:52
De : "Gabriel Gambetta"
A : "A list for developers using the SDL library. (includes SDL-announce)"
Copie ? :
Objet : Re: [SDL] SDL_mixer & streaming
I just query Mix_PlayingMusic() in every main loop iteration and play a new sequence if it returns 0. Works great (and I mean “thousands of players and the Ubisoft QA process without any complaint” great)
–Gabriel
On Mon, Sep 7, 2009 at 4:08 AM, AKHRES Nader wrote:
great news. It’s not clear on the documentation, it’s always said “load a music file”…
Another point: what’s the best way to implement a playlist? I mean without hearing any pause in between music files played? Using Mix_HookMusicFinished?
ps: context is I’m switching from fmod to sdl mixer. I use small music files representing several versions of chorus, verse,aso… from a music played randomly to create diversity… with fmod I have a playlist concept which helps do smooth transitions
E. Wing a ?crit :
The music parts of SDL_mixer (e.g. Mix_LoadMUS and Mix_PlayMusic)
already do streaming.
See section 4.5 Music in the SDL_mixer documentation:
http://jcatki.no-ip.org:8080/SDL_mixer/SDL_mixer.html
On 9/6/09, AKHRES Nader wrote:
?
Hello,
When I load a music in SDL_mixer, is it possible to use streaming
instead of loading all data in memory?
I can’t figure it out in the documentation…
Is there any other SDL based lib with streaming feature in case
SDL_mixer doesn’t deal with this?
Nad
SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org
? ?
SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org
?
SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org
[ (pas de nom de fichier) (0.1 Ko) ]
Laposte.net f?te ses 10 ans !
Gratuite, garantie ? vie et d?j? utilis?e par des millions d’internautes…
vous aussi, pour votre adresse e-mail, choisissez laposte.net.
Laposte.net, bien + qu’une messagerie