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 - Mix_Playing wrongly returns true after end of timed, looped playback
Summary: Mix_Playing wrongly returns true after end of timed, looped playback
Status: RESOLVED FIXED
Alias: None
Product: SDL_mixer
Classification: Unclassified
Component: misc (show other bugs)
Version: 1.2.11
Hardware: x86 Linux
: P1 normal
Assignee: Ryan C. Gordon
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-04-08 08:42 UTC by alexandru.albulescu+bugzilla
Modified: 2012-01-02 18:53 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.