Sound issues on RPi4, oF 0.11.1, Lite system

Hi!
Straight to the point:

  1. RPi4, 8GB of RAM, clean installation of RaspberryOS Lite (2021-01-11);
  2. enabled SSH, memory split set to 512, audio set to jack, GL driver set to Fake KMS;
  3. apt-get update && apt-get dist-upgrade && apt-get install xorg
  4. Downloaded oF 0.11.1, installed dependencies and codecs, compiled the framework;
  5. Compiled example sound/audioOutputExample - it works OK (including audio).
  6. Compiled example sound/soundPlayerExample - it starts but no sound.
    When app is running logs will show this line each second the app is running:
    AL lib: (EE) ALCplaybackAlsa_mixerProc: Wait timeout... buffer size too low?

When testing with aplay bin/data/sounds/beat.wav and sudo aplay bin/data/sounds/beat.wav - sound works.
When testing with speaker-test and sudo speaker-test - sound works.

Any tips?

Hey!

I’m running into the same issue. Did you end up fixing it?

Looking at the alsa conf files right now, but the buffer size isn’t set anywhere that I can find

Sadly, no… Tried few different things with no luck + every now and then I’m running apt-get dist-upgrade hoping that this will get fixed with more recent libs. Nothing yet.

Hmm.
Googling your error message. There is a thread about it here, with the last post as a potential solution.

1 Like

First test and it seams to work! Thanks, @theo !

Here’s the step-by-step solution:

sudo touch ~/.alsoftrc
sudo nano ~/.alsoftrc

paste this, save, exit:

[alsa]
mmap = false

then:

sudo cp ~/.alsoftrc /etc/openal/alsoft.conf
sudo reboot