rodio: Regression: Failing audio playback on Raspberry Pi.

After updating from 0.20.1 to the current master branch, audio playback stops after a split second on a first generation Raspberry Pi. The error audio stream error: A backend-specific error has occurred: alsa::poll() returned POLLERR is repeatedly printed to stderr.

This happens when using rodio as a dependency, as well as when running examples directly from the rodio repository (tested with music_wav and music_mp3).

This is on fully up to date Raspberry Pi OS where I have had Rodio 0.20.1 running successfully.

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 19 (5 by maintainers)

Commits related to this issue

Most upvoted comments

@MultivlaaiTaart please try #725

Current master branch seems to work fine!

Preferred size of 1024 doesn’t cut it. Has to be 1392 minimum. Now to understand why 1392, so we can actually reason about the preferred buffer size.

So cpal is giving us incorrect minimal buffer sizes?

No, cpal is dutifully reporting what it got from Alsa. It’s just that those Alsa values can be messy.

I assumed this fixed it on your pi @roderickvd ? (which is why I merged it so eagerly)

Yes and as confirmed by @MultivlaaiTaart, thanks again for reporting this regression and the quick feedback as well.