| Summary: | Pause music pauses all sounds: audio:pauseBackgroundTrack mutes all sound in windows | ||
|---|---|---|---|
| Product: | SDL_mixer | Reporter: | Maarten Peters <maartenpeters> |
| Component: | misc | Assignee: | Ryan C. Gordon <icculus> |
| Status: | NEW --- | QA Contact: | Sam Lantinga <slouken> |
| Severity: | normal | ||
| Priority: | P2 | CC: | adam, admin |
| Version: | 1.2.12 | ||
| Hardware: | x86 | ||
| OS: | Windows 7 | ||
|
Description
Maarten Peters
2013-03-22 09:30:03 UTC
Is this problem specific to Windows 7? Is midiOutSetVolume() setting the system wide volume? If that's the case, the only solution I can think of is to use the built-in timidity support for software midi instead. No, this bug also occurs on Windows Vista. I asked the question to one of the other developers. The answer: Yes it is and it was a known issue. I think the set volume in that funtion may not be necessary but there was a comment that it works around another bug. ''Our pause function does set the volume to work around another bug. I don't know if the other bug still exists so maybe we can get rid of just that line.'' Maybe this resolves our problem? > midiOutSetVolume() Yeah, for this thing I have this ticket: https://bugzilla.libsdl.org/show_bug.cgi?id=3495 The only way to fix this - make a workaround: instead of touching `midiOutSetVolume()` call, send MIDI volume to all channels and apply a factor to ALL volume change events (CC7). So, this will need tracking of all CC7 are passing to correctly send the changed volume to MIDI output. |