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

Possible miscalculated value at Recorder example comment #497

Open
YasarYY opened this issue Feb 26, 2025 · 0 comments
Open

Possible miscalculated value at Recorder example comment #497

YasarYY opened this issue Feb 26, 2025 · 0 comments

Comments

@YasarYY
Copy link

YasarYY commented Feb 26, 2025

At recorder example code's continueRecording method, referenced below, comment block states "The queue1 object can buffer approximately 301700 us of audio", but it seems that it should be 150930 us.

At the same comment block, "A pair of audio blocks arrives every 5802 microseconds" is correct (44100 Hz, 16 bit, mono). But, since queue1 object has a buffer of 52 blocks, max audio buffer time should be 150930 us, which is also compatible with AudioRecordQueue docs at Audio System Design Tool.

https://github.com/PaulStoffregen/Audio/blob/bd7de878a802841857a762e855e55fcc9da37fa2/examples/Recorder/Recorder.ino#L174C22-L174C29

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

No branches or pull requests

1 participant