Re: several second latency with USB audio

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

 






Понедельник, 4 января 2016, 18:45 +01:00 от Clemens Ladisch <cladisch@xxxxxxxxxxxxxx>:

Sergei Steshenko wrote:
> I have developed a piece of code (as LADSPA plugin) which among other things multiplexes one of two input streams into output stream.
>
> Though switching worked, latency was several seconds long instead fraction of a second.
>
> Initially I was debugging the whole issue using a USB audio card with standard USB (coming with the kernel) audio driver.
>
> Because of the latency I suspected a problem with my code, but after creating a special test audio files I've established that the multiplexing happens fast - within my LADSPA host buffer length, as expected. And the buffer length was 1024 samples @44100KHz.

What is the buffer length of the device?
(see /proc/asound/card*/pcm0p/sub0/hw_params)


Regards,
Clemens

Here it is:

"
sergei@amdam2:~/tmp> cat /proc/asound/card2/id
DeviceEEPROM
"

- yes, this is the card, it is

"
lsusb
Bus 001 Device 005: ID 0c76:161f JMTek, LLC.
",

and the requested info proper:

"
~/tmp> cat /proc/asound/card2/pcm0p/sub0/hw_params
access: MMAP_INTERLEAVED
format: S16_LE
subformat: STD
channels: 2
rate: 48000 (48000/1)
period_size: 1115
buffer_size: 262144
",

i.e. "buffer_size: 262144", and 262144/48000 is about 5.46 seconds - feels about right.

Regards,
  Sergei.


------------------------------------------------------------------------------
_______________________________________________
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