VS1053B Adafruit Example Code Doesnt Record OGG

Writing software for systems that use VLSI Solution's devices as slave codecs to a host microcontroller.
Post Reply
Posts: 1
Joined: Sun 2023-01-15 21:38

VS1053B Adafruit Example Code Doesnt Record OGG

Post by calebren14 »

I am using the Adafruit "Music Maker" MP3 Shield for Arduino w/3W Stereo Amp which has the VS1053b chip on it. The example code provided by adafruit and the Arduino IDE works fine for playback of MP3 files. But the record OGG files does not seem to work. And it seems like after recording 1 OGG file then the next one the file size is only 1KB. Attached is an example of the OGG file recording. Is something missing from it? Any help would be greatly appreciated!

Thank you.
(243.5 KiB) Downloaded 42 times
User avatar
VLSI Staff
Posts: 2053
Joined: Thu 2010-07-15 16:04

Re: VS1053B Adafruit Example Code Doesnt Record OGG

Post by pasi »

oggcrc (see viewtopic.php?p=12603#p12603 for source code) detects crc errors in frames 20 through 23, then a missing OggS header and missing frames 24-25, and again a crc error in frame 41 and a missing OggS header.

ogginfo also gives a lot of warnings about missing data (although some of the warnings seem to be duplicates).

So, it looks like the saving of the data is too slow, and this may relate to the other issues.

Maybe you can test with a lower samplerate and/or with lower bitrate.
Visit https://www.facebook.com/VLSISolution VLSI Solution on Facebook
Post Reply