Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix midi reset #179

Merged
merged 4 commits into from
Sep 26, 2023
Merged

Fix midi reset #179

merged 4 commits into from
Sep 26, 2023

Conversation

DBraun
Copy link
Owner

@DBraun DBraun commented Sep 26, 2023

This should address #178. PluginProcessor's reset implementation no longer calls processBlock. Now each call to render results in one extra call to processBlock, but the positionInfo's isRecording and isPlaying have been set to false. This allows each processor to behave differently inside its processBlock, such as making/consuming MIDI off events and ignoring other events.

processBlock shouldn't be called inside reset(). So now RenderEngine calls an extra processBlock at the end. Then each  processor is responsible to look at the position info and stop MIDI.
@DBraun DBraun linked an issue Sep 26, 2023 that may be closed by this pull request
@DBraun DBraun merged commit 35a9681 into main Sep 26, 2023
16 checks passed
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.

Uninitialized data input to plugin at start rendering
1 participant