We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 1180

Summary: Mix_Playing wrongly returns true after end of timed, looped playback
Product: SDL_mixer Reporter: alexandru.albulescu+bugzilla
Component: miscAssignee: Ryan C. Gordon <icculus>
Status: RESOLVED FIXED QA Contact: Sam Lantinga <slouken>
Severity: normal    
Priority: P1    
Version: 1.2.11   
Hardware: x86   
OS: Linux   

Description alexandru.albulescu+bugzilla 2011-04-08 08:42:31 UTC
If you use Mix_PlayChannelTimed() to play a chunk with loops>0 (so, at least twice), and a time limit, and if playback is cut short by the time limit, Mix_Playing() will continue to indefinitely return true.
 
This forum thread by Aki Koskinen is more specific, and gives a solution:

http://forums.libsdl.org/viewtopic.php?t=3527&sid=964c840d9a6461f79e00ccd745da6c1c
Comment 1 Ryan C. Gordon 2011-12-31 11:39:14 UTC
Bumping priority on a few SDL_mixer bugs. This is just so we know to look at them for an upcoming release, but once we look at them more closely, we may decide to flag them as WONTFIX or push them back to a later release, so don't take this change in priority as any promise of anything, yet.  :)

--ryan.
Comment 2 Ryan C. Gordon 2012-01-02 18:53:28 UTC
The patch looks sane to me. It's now hg changeset e7c80564dda5.

Thanks!

--ryan.