Re: [Alsa-user] buffer underrun issue

2017-03-09 Thread Clemens Ladisch
Ferenc Engárd wrote: > The program writes 3*1000 samples, then drains, sleeps 1 second, and loops. > My example output running this program: > > fery@fery-E6540:~/tmp/alsa-demo/alsa-underrun-demo$ g++ -o alsa-test > alsa-test.cpp -lasound && ./alsa-test > SOUND: setupWithFreq sampling rat

[Alsa-user] buffer underrun issue

2017-03-08 Thread Ferenc Engárd
Hi all, Welcome everybody, as this is my first mail to the list. I am trying to write my first ALSA audio program, and I have intermittent issues I can't explain. I am playing ~68ms of sound from memory, in 1-channel U8 setup, and quite frequently I get the following errors: ALSA error: Broken