free-audio / clap

Audio Plugin API
https://cleveraudio.org/
MIT License
1.82k stars 103 forks source link

undo: split the plugin interface #421

Closed abique closed 2 months ago

abique commented 2 months ago

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: