Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
native_midi_macosx: set volume before starting playing (bug #5356)
From michaeljosephmaltese: On macOS, the native MIDI backend applies volume after the MIDI file starts playing, which can lead to a split second of music at an incorrect volume (e.g. say you want to fade it in, or just have it start muted). I tracked this to native_midi_start in native_midi_macosx.c, which calls MusicPlayerStart before calling GetSequenceAudioUnit and native_midi_setvolume - this needs to be the other way round. We can safely move these around since we have a valid AudioUnit in the graph after calling MusicPlayerPreroll. https://bugzilla.libsdl.org/show_bug.cgi?id=5356
- Loading branch information