SPDIF clock rates #655
-
I'm trying to read MP3 files from an SD card and output SPDIF using the Audio Tools on an ESP32. The MP3 files are encoded at 44.1 kHz and I get output but the output rate seems to be about 10% slow. Output using I2S with an external DAC seems good. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
That's strange: if I got you right, it is working with the sine generator, but not via mp3 decoding on 44100. You could try to play around by adjusting the sample_rate a bit on line 154. (Or you could try to generate more samples with the help of a ResampleStream) Unfortunatly, I can't test this myself because I do not have any SPDIF equipment. |
Beta Was this translation helpful? Give feedback.
That's strange: if I got you right, it is working with the sine generator, but not via mp3 decoding on 44100.
You could try to play around by adjusting the sample_rate a bit on line 154. (Or you could try to generate more samples with the help of a ResampleStream)
Unfortunatly, I can't test this myself because I do not have any SPDIF equipment.