Adafruit_VS1053_Library
Adafruit_VS1053_Library copied to clipboard
Update record_ogg.ino
Missing update of addr. Perhaps never noticed as it only addresses the last bytes to be written to the record
@ladyada can you have someone look at these pull requests? Many of them are years old.
@sningo can you describe the issue that this fixes? What happens today and what is different with this fix?
@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