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 3853 - Mix_PlayMusic mod player doesn't work and mutes sound effects with SDL 2.0.6
Summary: Mix_PlayMusic mod player doesn't work and mutes sound effects with SDL 2.0.6
Status: RESOLVED FIXED
Alias: None
Product: SDL_mixer
Classification: Unclassified
Component: misc (show other bugs)
Version: 2.0.1
Hardware: x86 Windows 10
: P2 major
Assignee: Ryan C. Gordon
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-09-29 12:47 UTC by Anthony @ POW Games
Modified: 2017-10-25 00:37 UTC (History)
0 users

See Also:


Attachments
test code (1.78 KB, text/x-csrc)
2017-09-29 12:47 UTC, Anthony @ POW Games
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Anthony @ POW Games 2017-09-29 12:47:35 UTC
Created attachment 2962 [details]
test code

With the introduction of SDL 2.0.6, Mix_PlayMusic stopped working. No error code is returned. Calling Mix_PlayMusic also silences all sound effects. Mix_HaltMusic unmutes sound effects.

The attached test code reproduces this bug every time.
Comment 1 Sam Lantinga 2017-10-21 19:21:22 UTC
Can you try this with the latest code in Mercurial?
http://hg.libsdl.org/SDL_mixer

Thanks!
Comment 2 Anthony @ POW Games 2017-10-24 23:46:29 UTC
(In reply to Sam Lantinga from comment #1)
> Can you try this with the latest code in Mercurial?
> http://hg.libsdl.org/SDL_mixer
> 
> Thanks!

I've never been able to get Mercurial working for me, but the 2.0.2 binaries fix this problem. Sound and music are playing nicely now.

However, Mix_ChannelFinished() and Mix_HookMusicFinished() are now broken. Not being triggered when a sample ends. Only triggered when a sample / music is forcibly halted.
Comment 3 Anthony @ POW Games 2017-10-25 00:37:52 UTC
scratch that - it was something I was doing wrong. The call-backs are working - everything seems to be working this end.