loopback device (snd_aloop) appears running too fast, causing overruns

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



(first-time poster to list)

My snd_aloop loopback device appears to be running too fast
and is causing overruns.  OS is Mageia 2.  Kernel is
3.4.32-server-2.mga2.  Hardware is Asus P6T6 WS Revolution
in case that matters.

First symptom: Was using snd_aloop with JACK for a zero-
client setup with Mageia 1 on the machine running snd_aloop,
and sound quality was good.  Switching to Mageia 2, sound
quality is terrible.  It sounds like there's a short silent
period several times a second--badly chopped-sounding.
Tried all the JACK tuning I could find to no avail.  This
might not be directly caused by the loopback device.

Second symptom: I wrote two programs.  The first captures
from the loopback device and sends the data to a network
port.  The second receives the data from a network port and
plays to a real soundcard.  With settings for CD rate,
44100 frames per second, 176000 bytes per second, the sender
would get overruns every couple of seconds starting about
15 seconds after starting.  Instrumenting the sender for
data capture rate showed about 55k frames per second.

Third symptom: Swithed to standard components: aplay, arecord,
pv, and nc in this manner:

   sender:    arecord -D hw:2,1,0 -t raw -f cd - | pv | nc localhost 51230
   receiver:  nc -l 51230 | pv | aplay -t raw -f cd

This shows the same pattern of overruns in the sender that
my program saw.  The receiver shows about 172kB/s, but the
sender shows 215kB/s until the overruns start being reported.

Adding a '-a' option to the pv commands, and doing "pv -a"
on the stream that feeds aplay to hw:2,0,0 of a CD-rate
track and letting everything run for a while, the aplay
into hw:2,0,0 shows 217kB/s, the sender shows 181kB/s, and
the receiver shows 172kB/s.

Shouldn't the loopback device control the frame rate to
be what the applications opened it for?

Is there a solution to keep the above sender and receiver
command chain from having overruns?

Thanks,

Robert

------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_feb
_______________________________________________
Alsa-user mailing list
Alsa-user@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/alsa-user


[Index of Archives]     [ALSA Devel]     [Linux Audio Users]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]

  Powered by Linux