Frank B.....
Thanks for your reply.....queries......
Did you delete all tags from the file ? The tags are stored in front of the sounddata...??????
Not sure what you mean by tags in front of sounddata.....I was using MP3 files stored on SD and trying to read as they are...
And, of course it helps do run the teensy with 120MHZ, and to use -O2 ????????
I just using setup in Teensy arduino IDE .... 96 MHZ. .....not sure what os -O2
Or you can store the MP3 (better is aac!) in the program-flash or serial-flash .... ?????
I dont have the option serial memory chip attached.....so I assume can only use program-flash
I assume that only means small files or snipits of files. I was trying to read the MP3 library....Does memory only keep a list of what to play and play from SD as it demands OR does the whole file need first stored in flash and then play from flash.
Regards my double start problem.......
Yes...I am testing playing in a loop as per the example sketch.....so I thought bounce would not be required.
Just simply.......
wav.play("A.WAV");
delay(100); // or whatever to let it play a few milliseconds
wav/play("B.WAV"); // attempt to play another file
delay(100); // let it play a while
etc.
Then the loop repeats..........
Your MP3 player example plays cleanly....and also tried MP3 playing in a loop similar to the wav example....output waveform is very good...
no 2 starts anywhere, but 60 seconds between end of last playing and start on next playing as recorded on the output sound.
Probably this may be 30 milli seconds to stop last play and 30 seconds to start next play and synch etc before output.
I can see the library files involved but not sure on the fine details and variables used to follow or debug except you can point me......
The 2 start play is only in the wav player not the MP3 play.... either would do me if I can get a reasonable clean and short stop/start between files....For playing very short sounds or chirps.
I will try the pause.......but looks like it re-starts from where it stopped.....can it go back to start each re-start....OR move to any position....Like a "seek" function
Thanks for your help
Thanks for your reply.....queries......
Did you delete all tags from the file ? The tags are stored in front of the sounddata...??????
Not sure what you mean by tags in front of sounddata.....I was using MP3 files stored on SD and trying to read as they are...
And, of course it helps do run the teensy with 120MHZ, and to use -O2 ????????
I just using setup in Teensy arduino IDE .... 96 MHZ. .....not sure what os -O2
Or you can store the MP3 (better is aac!) in the program-flash or serial-flash .... ?????
I dont have the option serial memory chip attached.....so I assume can only use program-flash
I assume that only means small files or snipits of files. I was trying to read the MP3 library....Does memory only keep a list of what to play and play from SD as it demands OR does the whole file need first stored in flash and then play from flash.
Regards my double start problem.......
Yes...I am testing playing in a loop as per the example sketch.....so I thought bounce would not be required.
Just simply.......
wav.play("A.WAV");
delay(100); // or whatever to let it play a few milliseconds
wav/play("B.WAV"); // attempt to play another file
delay(100); // let it play a while
etc.
Then the loop repeats..........
Your MP3 player example plays cleanly....and also tried MP3 playing in a loop similar to the wav example....output waveform is very good...
no 2 starts anywhere, but 60 seconds between end of last playing and start on next playing as recorded on the output sound.
Probably this may be 30 milli seconds to stop last play and 30 seconds to start next play and synch etc before output.
I can see the library files involved but not sure on the fine details and variables used to follow or debug except you can point me......
The 2 start play is only in the wav player not the MP3 play.... either would do me if I can get a reasonable clean and short stop/start between files....For playing very short sounds or chirps.
I will try the pause.......but looks like it re-starts from where it stopped.....can it go back to start each re-start....OR move to any position....Like a "seek" function
Thanks for your help