Skip to content
This repository has been archived by the owner on Jun 23, 2023. It is now read-only.

PortMidi: Update volume after "reset all controllers" event #571

Merged
merged 2 commits into from
Mar 30, 2023
Merged

PortMidi: Update volume after "reset all controllers" event #571

merged 2 commits into from
Mar 30, 2023

Conversation

ceski-1
Copy link
Contributor

@ceski-1 ceski-1 commented Mar 30, 2023

This is a workaround for a bug that appears when using PortMidi, Windows, and the default Windows MIDI synth (Microsoft GS Wavetable Synth). When the MS GS Synth receives a "reset all controllers" event it also resets the channel volume, deviating from MIDI spec. As a result, in certain cases the channel can be audible even if the music volume slider is set to zero. The workaround is to always update the volume after a "reset all controllers" event.

Test wad: reset_all_ctrls_test.zip

@fabiangreffrath fabiangreffrath merged commit 92a04f1 into coelckers:master Mar 30, 2023
@ceski-1 ceski-1 deleted the portmidi-fix branch March 30, 2023 06:41
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants