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

Windows SA: Audio/MIDI settings #307

Merged
merged 7 commits into from
Sep 20, 2024
Merged

Windows SA: Audio/MIDI settings #307

merged 7 commits into from
Sep 20, 2024

Conversation

mthierman
Copy link
Contributor

Apologies for the semi-crazy diff.

  1. Windows standalone is now a single header/source unit, and the main() file has been renamed and cleaned up.
  • Implemented a message manager to make construction and handling messages easier
  • Audio/MIDI settings now work and state is saved as a JSON file in the same location as the plugin autosave and default states. We can also save plugin window position now
  • GUI handling has been much improved and most of the bugs have been fixed. There may be some remaining bugs in regards to resizing, however.
  • We are using Windows.Data.Json (using C++/WinRT that ships with the Windows SDK to avoid another dependency) for the settings

I have tried to be as minimally invasive to the standalone host to implement changing audio ins/outs, buffer sizes & sample rates, and MIDI devices. This should be double checked against the mac and linux versions for any breakage but the behavior should be the same on those platforms.

@mthierman
Copy link
Contributor Author

Closes #188.

@@ -75,6 +76,7 @@ std::shared_ptr<Clap::Plugin> mainCreatePlugin(const clap_plugin_entry *ee, cons
if (fs::exists(loadPath / "settings.clapwrapper"))
{
LOG << "Trying to load from clap wrapper settings" << std::endl;
fs::create_directories(loadPath);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This creat isn't needed since we already know the directory exists from the if above

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch, I forgot we were loading here.. Removed it.

@baconpaul baconpaul merged commit cd3cac0 into free-audio:next Sep 20, 2024
19 checks passed
@mthierman mthierman deleted the dev-next-merge branch September 21, 2024 05:29
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