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

undo: split the plugin interface #421

Merged
merged 7 commits into from
Sep 18, 2024
Merged

Conversation

abique
Copy link
Contributor

@abique abique commented Sep 18, 2024

There's two plugin interfaces which both are optional.

A super minimal implementation for the plugin is to just query the host interface, and call change_made() with a null delta. This lets the host know that a change was made, snapshot the plugin state and workout the undo/redo by using state save/load.

Then the two plugin interfaces are:

  • delta: optimization
  • context: user interface

@abique abique marked this pull request as ready for review September 18, 2024 10:25
@abique abique merged commit 577e6dd into free-audio:next Sep 18, 2024
4 checks passed
@abique abique deleted the undo-cleanup branch September 18, 2024 10:26
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.

1 participant