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

Use nested interrupts (NVIC) in play_sd_raw.cpp #490

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

nsasch
Copy link

@nsasch nsasch commented Dec 22, 2024

This copies over the changes that were made in 6369a6a to fix the same issue for raw audio files. The issues are also discussed in this forum post: https://forum.pjrc.com/index.php?threads/teensy-4-0-first-beta-test.54711/page-127#post-207700

Before this change, playing a second raw file while one was already playing would result in inconsistent behaviour. I observed it doing one of three things:

  • it would work as desired ~30% of the time
  • freeze all code execution ~50% of the time
  • freeze for 1-5 seconds, not play the second file, and return, resuming code immediately after the call to AudioPlaySdRaw.play

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