MP3 HEADER DETAILS FROM LIBRARY #534
-
Hi I was using the library to play mp3 from different urls. I am getting distorted audio when the bit rates are different. Is there a function to get the MP3 header details of a file in an SD card or from the url , so that I can change the sample rates accordingly. Sorry if I have made any newbie mistakes as I am new to audio processing. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 10 replies
-
That should happen automatically: can you share your example that is not working ? You could try to add a setNotifyAudioChange(i2s) to the EncodedAudioStream, to make sure that the I2SStream is notified about changes... |
Beta Was this translation helpful? Give feedback.
-
I assume the file copy does not work because the method availableForWrite() on a file returns 0. Can you double check ? |
Beta Was this translation helpful? Give feedback.
-
You can manage the Wifi connection yourself and then just omit the userid and password from the URLStream |
Beta Was this translation helpful? Give feedback.
I assume the file copy does not work because the method availableForWrite() on a file returns 0. Can you double check ?
If this is the case you could use copier.setCheckAvailableForWrite(false).
The volume is currently notified about audio changes, but does not pass it on to I2S. I guess I should extend the logic a bit...