Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cracking noises and some playbacks stop #887

Open
foorschtbar opened this issue Nov 2, 2024 · 5 comments
Open

Cracking noises and some playbacks stop #887

foorschtbar opened this issue Nov 2, 2024 · 5 comments

Comments

@foorschtbar
Copy link

After switching from Release 3.0.8 to 3.0.12 i had two problems:

  • Playback for some mp3 stops after a few seconds
  • I hear a random cracking noise - 3.0.8 had also some cracking noise, but very very quiet, with 3.0.12 it is very loud.

Nothing special in the debug output. Anyone has the same problem?

PS: @schreibfaul1 awesome library!

@dominickairmyne
Copy link

I have been having alot of issues with this as well!

@ra0943-VK3ACH
Copy link
Contributor

Im also having issues with this. Would you be able to share your code? and are you playing local files or streaming them

@schreibfaul1
Copy link
Owner

schreibfaul1 commented Nov 12, 2024

In the old version, the audio.loop() did everything. Since the WiFiClient is not blocking-free, I have moved the part responsible for decoding and I2S "feeding" to an extra task. This way many streams, especially m3u8, run more smoothly.
This relieves the audio.loop(), which runs on core 1 by default. It may be that there is not enough time for other tasks, in which case a vTaskDelay() 1...10ms provides a remedy.

image

Otherwise, it may be that in some projects core 0 is now overloaded, e.g. by your own tasks, in which case the audio task can be moved from core 1 to core 0.
audio.setAudioTaskCore(uint8_t coreID)

@ra0943-VK3ACH
Copy link
Contributor

Adding vTaskDelay has solved the issue for me! Thankyou!

@foorschtbar
Copy link
Author

Yes, the vTaskDelay(1); fixed the crackings also for me, thank u.

But i still need to downgrade to 3.0.8 to play a mp3 that stops playing (or is quiet until the end) with 3.0.12. No useful information with audio_info. And the end of the file, you could here something and then audio_eof_mp3 is called.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants