-
Notifications
You must be signed in to change notification settings - Fork 21
Revamp audio plugins module #47
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
Open
luapmartin
wants to merge
26
commits into
musescore:main
Choose a base branch
from
luapmartin:luapmartin/revamp-audio_plugins-module
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
26 commits
Select commit
Hold shift + click to select a range
3eae11b
[audioplugins] revamp framework module: decouple, version, state life…
luapmartin df64040
[vst] decouple plugin attributes; fix metaType signature
luapmartin 445e92f
[vst] make vstpluginmetareader fully audio-independent
luapmartin f3b3a30
[audio] strongly-typed plugin format identifiers
luapmartin f8920b7
[audioplugins] LOGE cache-load failures + sharper migration errors
luapmartin 674f108
[audioplugins] Discovered placeholders + auto-resume on next scan
luapmartin c068b6d
[audioplugins] test register-level same-id-same-path guard
luapmartin b302e5e
[audioplugins] framework auto-registers its own cache migrations
luapmartin 88c547c
[audioplugins] persist every validated plugin during an interrupted scan
luapmartin ad7f54c
[audioplugins] allow registering new plugins without validation
luapmartin c8d6dda
[audioplugins] tests for partial-scan persistence and validate=false
luapmartin 65ef08e
[audioplugins] make AudioResourceMeta::operator< a strict weak ordering
luapmartin 129edfd
[audioplugins] scanPlugins: track every cached ID per binary path
luapmartin db314d3
[audioplugins] test multi-id-per-path state transitions
luapmartin 990b09f
[audioplugins] reject malformed known_audio_plugins.json envelopes
luapmartin 6c6e915
[audioplugins] let runtime-attribute defaults override cached values
luapmartin 19a459c
[audioplugins] updatePluginsRegistry: check setPluginsState results
luapmartin 8c2e698
[vst,audio] address CodeRabbit nitpicks (named constants, IWYU)
luapmartin 31134ea
[audioplugins] register a default no-op v2->v3 cache migration
luapmartin 0d3ff3c
[audioplugins] registerNewPlugins: return Ret instead of void
luapmartin 798401c
[audioplugins] migrator v1->v2: use audioPluginStateName for wire str…
luapmartin 94beb75
[audioplugins] reject malformed rows when loading the plugin cache
luapmartin d98bde6
[audioplugins] check removePluginsAtPath result in register(Failed)Pl…
luapmartin 98f944a
[audioplugins] give AudioPluginState::Undefined an explicit wire name
luapmartin 8c9e10d
[audioplugins] rename AudioResourceId -> PluginResourceId
luapmartin 6fa2cb6
[audio] split audio::AudioResourceId off as independent alias with co…
luapmartin File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we should simply break the connection between audio and audioplugins
i.e., consider them to have nothing in common.
Maybe it makes sense to rename audioplugins to something else, like userplugins
So, as it was:
Audio plugins loaded and created audio resources - the problem here is that Audacity don't use our audio, so they have "different" terms, resources, etc.
Now, as I understand it, our audio uses audio plugins, and their types - well, that's also not very clear, why should our audio depend on an auxiliary module...
Therefore, I think we need to break this connection completely:
MF audio data types exist in our terminology, whatever it may be.
There are data types for Audacity audio and effects.
There is a module that verifies and loads user plugins and its data types.
Each application has its own mapping:
PluginTypes (some meta) - AudioTypes (resource) for MF
PluginTypes (some meta) - EffectsTypes (...) for Audacity
Audio plugins must have their own types, and we need to convert one type to another
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually, I think right now it would be enough to do something like this:
i.e. make it one to one
This may look strange now, but in essence this is exactly what we need
Then we can continue to: