Re: several second latency with USB audio

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

 






Понедельник, 11 января 2016, 18:20 +03:00 от Sergei Steshenko <steshenko_sergei@xxxxxxx>:




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

Sergei Steshenko wrote:
> Воскресенье, 10 января 2016, 22:40 +01:00 от Clemens Ladisch <cladisch@xxxxxxxxxxxxxx>:
>
> Sergei Steshenko wrote:
> >> Пятница, 8 января 2016, 10:14 +01:00 от Clemens Ladisch <cladisch@xxxxxxxxxxxxxx </compose?To=cladisch@xxxxxxxxxxxxxx>>:
> >> Sergei Steshenko wrote:
> >>> Понедельник, 4 января 2016, 18:45 +01:00 от Clemens Ladisch < cladisch@xxxxxxxxxxxxxx </compose?To=cladisch@xxxxxxxxxxxxxx> >:
> >>> What is the buffer length of the device?
> >>> (see /proc/asound/card*/pcm0p/sub0/hw_params)
> >>>
> >>> "buffer_size: 262144", and 262144/48000 is about 5.46 seconds - feels about right.
> >>
> >> The audio device is configured by whatever program actually writes to it,
> >> probably your host. What is it? How is it configured?
> >
> > the program is 'ecasound'.
>
> And how have you configured ecasound? Is it using Jack? If yes, how have
> you configured Jack?
>
> Ecasound does not use Jack, and I used '-b 1024' on command line.
>
> Is there a default buffer length which does not depend on the application ?

No. The application always sets the buffer size.

1 MB (= 256k samples) is the maximum USB buffer size. Apparently, ecasound
does not use your setting for USB devices.

> in 2.6.* kernels there was a module parameter determining latency

That was for a different buffer.


Regards,
Clemens

"Apparently, ecasound does not use your setting for USB devices" - how does it know it's a USB device in the first place ? I.e. does ALSA API provide access to such info ?

Anyway, I strongly doubt your assertion. Ecasound was meant as pretty much real time, with real time capability which it always tries to use (but requires access permissions to really increase real time priority).

Regards,
  Sergei.
------------------------------------------------------------------------------

I have checked the other USB soundcard, and for it:

"
cat /proc/asound/card2/pcm0p/sub0/hw_params
access: RW_INTERLEAVED
format: S24_3LE
subformat: STD
channels: 2
rate: 44100 (44100/1)
period_size: 1024
buffer_size: 174762
".

Please note that "buffer_size: 174762" is different from "buffer_size: 262144" for the first USB sound card I was talking about.

So, the theory that ecasound sets buffer size is even less plausible. Because ecasound settings are the same for both cards, and both cards are USB.

Regards,
  Sergei.







------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=267308311&iu=/4140
_______________________________________________
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