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

fix: crash when loading many audio files asynchronously #123

Merged
merged 4 commits into from
Aug 29, 2024

Conversation

alnitak
Copy link
Owner

@alnitak alnitak commented Aug 29, 2024

Description

This PR resolves #122.

This fix a race condition that occurred when trying to load many files concurrently, expecially small audio which are loaded relatively fast and didn't let the audio thread to finish for the upcoming other loading requests.

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 self-assigned this Aug 29, 2024
@alnitak
Copy link
Owner Author

alnitak commented Aug 29, 2024

Going to publish v2.1.2 on pub.dev.

@alnitak alnitak merged commit 6d09fce into main Aug 29, 2024
1 check passed
@alnitak alnitak deleted the async_multi_load branch August 29, 2024 12:24
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.

fix: crash when loading many audio files asynchronously
1 participant