Raspberry Pi3, Allegro 5.
I have delays when playing wav sounds.
I used pulseaudio (very bad, 5+ seconds).
With pulseaudio disabled and alsa, about 500ms.
I tried al_load_sample/al_play_sample and also al_create_sample_instance/al_play_sample_instance.
The wav file is short, about 1-2 seconds.
With command aplay is ok.
I have read https://www.allegro.cc/forums/thread/616209
and other threads but I can't solve.