Max9814 to mp3 sdfat example #390
-
I have made a beTA version of adc to mp3 example,but I don't have max9814 now ,so I'll simply upload my beta code |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 1 reply
-
V0.1
|
Beta Was this translation helpful? Give feedback.
-
You need to add some logic to close the file: otherwise it will be empty. |
Beta Was this translation helpful? Give feedback.
-
@pschatzmann Thank you for your suggestion!And do I need to create a empty mp3 file in my computer?And what does this "o_creat"and "o_write"means? audioFile = SD.open("/test/002.mp3", O_WRITE | O_CREAT); |
Beta Was this translation helpful? Give feedback.
-
Google is your friend: this has nothing to do with my library! |
Beta Was this translation helpful? Give feedback.
-
@pschatzmann hi,is this normal?thank you! |
Beta Was this translation helpful? Give feedback.
You need to add some logic to close the file: otherwise it will be empty.
To overwrite the file you can just move to the beginning after opening it. If I remember right it's with audioFile.seek(0)
I am not sure if this logic will not work: You define what needs to be done with the file even before it (really) exists.