Skip to content

Update feedback_accumulator calculation for audio to use AUDIO_SAMPLE_RATE_EXACT#797

Open
bthayer3 wants to merge 1 commit intoPaulStoffregen:masterfrom
bthayer3:updateFeedbackAccumulator
Open

Update feedback_accumulator calculation for audio to use AUDIO_SAMPLE_RATE_EXACT#797
bthayer3 wants to merge 1 commit intoPaulStoffregen:masterfrom
bthayer3:updateFeedbackAccumulator

Conversation

@bthayer3
Copy link
Copy Markdown

I found this formula was mentioning 44.1 kHz which could be improved by referencing the exact variable. With this change, feedback_accumulator value is more dynamic and respects changes to AUDIO_SAMPLE_RATE_EXACT.

Note I only am updating Teensy 4 version. I don't know the formula used for Teensy 3 version; I am not sure of the formula for this and how 185042824 was determined.

@djphazer
Copy link
Copy Markdown

djphazer commented Mar 2, 2026

FYI, a similar change is lined up in this branch along with a bunch of other fixes for multi-channel USB Audio: https://github.com/h4yn0nnym0u5e/cores/tree/alex6679/add-multi-channel-usb

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