sdl@lists.libsdl.org
[Top] [All Lists]

Re: [SDL] SDL_Mixer: "Divide by zero" error after updating to 1.2.10

Subject: Re: [SDL] SDL_Mixer: "Divide by zero" error after updating to 1.2.10
From: Sam Lantinga
Date: Sat, 14 Nov 2009 12:57:58 -0800
Yes, only being able to play a file once is a bug that's fixed in the
pre-release:
http://www.libsdl.org/tmp/SDL_mixer/

Which documentation is incorrect?
The header file states:
If 'loops' is greater than zero, loop the sound that many times.

On Thu, Nov 12, 2009 at 3:17 AM, Christian Knudsen
<webmaster@xxxxxxxxxxxxxxx> wrote:
> Argh, I didn't have mikmod. I didn't need that before, though?
>
> But now I have another problem. I can only play a music file once. If I set it
> playing, then set it playing again, there's silence. I can get it to loop
> continuously with Mix_PlayMusic(MusicNumber, -1), but if I do
> Mix_PlayMusic(MusicNumber, 0) or Mix_PlayMusic(MusicNumber, 1) it will only 
> play
> it once even though I call it again. I didn't have any problem with this 
> before.
>
> Also, the documentation says that if you set the play times to zero, it will
> play zero times. It doesn't; it plays it one time.
>
> _______________________________________________
> SDL mailing list
> SDL@xxxxxxxxxxxxxxxx
> http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org
>



-- 
        -Sam Lantinga, Founder and President, Galaxy Gameworks LLC
_______________________________________________
SDL mailing list
SDL@xxxxxxxxxxxxxxxx
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

<Prev in Thread] Current Thread [Next in Thread>