[pulseaudio-discuss] Setting latency of module-loopback

Tor-björn Claesson tclaesson at gmail.com
Fri Oct 2 05:13:59 PDT 2009


>>* Fails? Please elaborate? What's the log output PA generates when you
*>>* do this? Something like this should work, though 1ms is probably a bit
*>>* too low.
*
I get:
Oct  2 13:39:13 Dator pulseaudio[2085]: module-loopback.c: Failed to
parse module arguments
Oct  2 13:39:13 Dator pulseaudio[2085]: module.c: Failed to load
module "module-loopback" (argument:
"source=alsa_input.usb-TerraTec_PHASE_26_USB_16_48__11001-00.analog-stereo
sink=alsa_output.usb-TerraTec_PHASE_26_USB_16_48__11001-00.analog-surround-41
latency_msec=5"): initialization failed.

in /var/log/syslog. I also tried setting a slightly higher latency
(like 5 ms) but it doesn't matter.

I checked the source code, and latency_msec is missing from the list
of valid module arguments. Attaching a patch to add it.

>Also your input and output don't seem to have the same frequency and
>word depth, you really want to remove any kind of

>resampling/reformatting for an echo functionality.
>Cheers
>- Pierre

Thanks for the tip! Actually, I can't seem to get a good latency so I
will try some other solution.

MvH
Tor-björn
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/pulseaudio-discuss/attachments/20091002/56877ab4/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch
Type: application/octet-stream
Size: 246 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/pulseaudio-discuss/attachments/20091002/56877ab4/attachment.obj>


More information about the pulseaudio-discuss mailing list