Iāve found whatās happening. Mix_PlayMusic() is silencing all sound channels. Mix_HaltMusic() will unmute the channels so they will play normally.
This didnāt happen in the 2.0.6 pre-release - only music (using MIX_INIT_MODPLUG) stopped working, but sounds still played.
Iāve spent hours trying to build SDL_mixer from source, but I canāt do it. I get make errors. I donāt really know how to use Linux. I got as far as linking the source code into Eclipse, but I got an error something like āMixer not built with libmod supportā. Every forum I have searched has people posting about the same problem but nobodyās posted a solution. Can we have a new SDL_mixer version?
Iāve put together this test code. Pressing 1 will play the sample no problem until pressing 2 to play the mod will silence everything. Pressing 3 to halt the mod will unmute the wav.
Music is also still silent (using MIX_INIT_MODPLUG). No errors are returned, just silence. This worked in 2.0.5.
1.mod (4.3 KB)
https://discourse.libsdl.org/uploads/default/original/2X/f/fac4c7e4a1e2625ffb4fe586ab054c8879cb2a49.wavmain.cpp (1.8 KB)