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

Update record_ogg.ino #85

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

Update record_ogg.ino #85

wants to merge 1 commit into from

Conversation

sningo
Copy link

@sningo sningo commented Apr 10, 2023

Missing update of addr. Perhaps never noticed as it only addresses the last bytes to be written to the record

Missing update of addr. Perhaps never noticed as it only addresses the last bytes to be written to the record
@johnwargo
Copy link
Contributor

@ladyada can you have someone look at these pull requests? Many of them are years old.

@johnwargo
Copy link
Contributor

@sningo can you describe the issue that this fixes? What happens today and what is different with this fix?

@sningo
Copy link
Author

sningo commented Nov 29, 2023

@johnwargo today: If more than one sample is available (line 147), then only the last collected word is being written/ earlier ones being overwritten, making the audio record incomplete.

with the fix: Code snipped will probably do what it was initially intending (otherwise I cannot see any meaning in the declaration of the variable addr). All available words are written to the record_buffer, resulting in a complete audio record

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