Hi Clemens,
thank you very much for all the advice
Is some other process blocking the CPU or disk I/O?
aplay playback is initiated by a GUI application on a dedicated thread.
This application is running during playback in a KDE desktop, but apart
from this the PC (a quad-core Xeon E5-1607 v2) is not being used for
anything else. I suspect the issue may be related to disk I/O, I very
rarely see these underruns on another experiment which uses WAV files
0.45-seconds long, while a single underrun per file played occurs often
in this experiment with 70-second long WAV files.
Try increasing the period size.
a single underrun lasting about 122-ms would be negligible for my
experiment
Please note that the stream is stopped, and restarted later. Can you
actually live with all later samples being shifted in time?
if that's all that is happening I should be OK. Each WAV file contains
1000 independent stimuli (these are very short clicks embedded in noise,
and timing between the clicks is not crucial). If the stream is simply
abrubtly stopped and restarted later exactly where it stopped when an
underrun occurs, this will only corrupt 1 of the 1000 stimuli, which is
negligible.
Regards,
Sam
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Alsa-user mailing list
Alsa-user@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/alsa-user