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

Summary: Mix_PlayMusic mod player doesn't work and mutes sound effects with SDL 2.0.6
Product: SDL_mixer Reporter: Anthony @ POW Games <ant>
Component: miscAssignee: Ryan C. Gordon <icculus>
Status: RESOLVED FIXED QA Contact: Sam Lantinga <slouken>
Severity: major    
Priority: P2    
Version: 2.0.1   
Hardware: x86   
OS: Windows 10   
Attachments: test code

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.