Skip to content

Don't reset fluid_synth in MIDIPlayer.cpp stop()#1738

Merged
sirjuddington merged 1 commit into
sirjuddington:masterfrom
ipaqmaster:master
Oct 23, 2024
Merged

Don't reset fluid_synth in MIDIPlayer.cpp stop()#1738
sirjuddington merged 1 commit into
sirjuddington:masterfrom
ipaqmaster:master

Conversation

@ipaqmaster

@ipaqmaster ipaqmaster commented Oct 8, 2024

Copy link
Copy Markdown
Contributor

This call causes the soundfont to reset to default if a MIDI entry is played and any of the Play, Pause or Stop buttons get pressed after playback has already started. This results in all instruments being reset back to a default piano once playback resumes for the selected MIDI entry.

This patch addresses the issue I experienced in #1737 where playing a MIDI entry works fine, but the soundfont disappears after the Play, Pause or Stop buttons are clicked.

The stop() function calls out to fluid_synth_system_reset(fs_synth_) which breaks the soundfont for the selected MIDI entry. Once playback is resumed, all instruments other than the drumkit have been reset to default MIDI pianos.

This call causes the soundfont to reset to default if a MIDI entry is
played and any of the play/pause/stop buttons get pressed during
playback. This results in all instruments being reset back to a default piano.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants