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

using loadFile or loadMem freeze the UI #113

Merged
merged 2 commits into from
Aug 2, 2024
Merged

using loadFile or loadMem freeze the UI #113

merged 2 commits into from
Aug 2, 2024

Conversation

alnitak
Copy link
Owner

@alnitak alnitak commented Aug 2, 2024

Description

After removing AudioIsolate there was the need to use a callback in C to tell Dart that the file was loaded. This make the load file functions to run in the main UI thread and using a C++ thread to do that, didn't work as expected.

This has been resolved using compute() to load files. On web there is still a freeze during loadMem()

Type of Change

  • ✨ New feature (non-breaking change which adds functionality)
  • 🛠️ Bug fix (non-breaking change which fixes an issue)
  • ❌ Breaking change (fix or feature that would cause existing functionality to change)
  • 🧹 Code refactor
  • ✅ Build configuration change
  • 📝 Documentation
  • 🗑️ Chore

@alnitak alnitak merged commit 99bb7f9 into main Aug 2, 2024
1 check passed
@alnitak alnitak deleted the loadFile_freeze branch August 2, 2024 16:28
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