Open Marcin-Fenger opened 3 days ago
I have tested sinus 1kHz mp3 on oscilloscope and it is distorted. On old release works fine. I have already spent 2 days to solve that without succes.
Hello Marcin-Fengler, thank you for your contribution. I recently changed the routine for mono. I think it works better now. However, https://rs6-krk2.rmfstream.pl/RMFFM48 does not really transmit in mono but in parametric stereo. The RAM in the ESP32 is limited and decoding must take place in the PSRAM. Unfortunately, the "quad" PSRAM is too slow for this, so Parametric Stereo is switched off. PS is possible with "octal" PSRAM in the ESP32-S3 N16R8 or N8R8.
Hello schreibfaul1 I'll join the topic. After the latest changes in the latest library, some mono stations are almost unlistenable, I was curious what happened. I played the sine test and got scared. This is what my oscilloscope shows. The sine wave is terribly jagged..
In the i2s_audio 3.0.13j library version, the sine looks very good.
However, it might be worth returning to the previous conversion method.
Thank you for improving the decoding of FLAC streams. In the current library, it works very well.
Best regards
Piotr
1kHz
10kHz - more distorted
Signals looks like amplitude modulated with second frequency
Hello, I2S is supposed to be able to play mono on two channels. It looks like this only works with the ESP32-S3. I have restored the old state and double the channels as before.
Thank you very much. Now all sound perfect.
I play with you library for years. I very appreciate your work.
I have some improvements to consider.
BTW, I use loop on core 1, prioryty 1 and audio task on core 1 prioryty 2 as you set :)
Greetings!
And new observation the 3.0.13t
ADTS 48k cause very high duty of processor. Scroll stops on core 0 on this stream https://stream320.radiodzwiek.pl. Was normal, but now duty is very very high. Did You change something in this codec? In versions j & r was good.
EDIT: Very sorry forget to change AudioTask to core 1. Works without trouble.
Hi Marcin, thanks for your feedback. I will see what I can implement from your suggestions. What would be problematic is to remove audio.loop() from the Arduino loop task. Then an intertask communication (message queues) would be necessary for the further processing of events like audio_streamtitle(), which is difficult for beginners.
https://stream320.radiodzwiek.pl is demanding with a bit rate of 384K (stream4.nadaje.com). However, this is possible if you increase the number of TCP connections and the RX buffers in menuconfig lwip/TCP.
There is something wrong whith 16bit 1ch streams - https://rs6-krk2.rmfstream.pl/RMFFM48
In previous version (3.0.13j) validSamples was 2024, but now after changes(16bit conversion) is 1024 and sound is distorted.
2ch plays without problems with 1024 or 1152 validSamples.
Plaese take a look and check if this channel plays ok by your side.