alsa-devel.alsa-project.org archive mirror
 help / color / mirror / Atom feed
* Latency of mixer reconfiguration
@ 2010-02-17 18:15 Lennart Poettering
  2010-02-17 20:34 ` James Courtier-Dutton
  2010-02-18 10:01 ` Mark Brown
  0 siblings, 2 replies; 10+ messages in thread
From: Lennart Poettering @ 2010-02-17 18:15 UTC (permalink / raw)
  To: ALSA Development Mailing List

Heya!

So, as some of you might know in PA we extend the abilities of the
hardware volume control in software. Meaning that if a hw mixer
control only allows a limited range or granularity of a volume scale
or does not distuingish between channels then PA will configure the
hardware to the next higher available setting of the real
volume it wants to achieve, and then attenuates the PCM stream to
compensate for the rest.

This actually works quite well but there is a certain probelm with
latency: i.e. the mixer setting will be applied at a slightly
different time than the PCM attenuation. 

Now the question I have is, how should I best deal with this? I
currently assume that mixer volume changes are basically instantaneous
when I call the respective function of ALSA. But are they really? How
big is the latency at max? Do we need an API to query it?

Lennart

-- 
Lennart Poettering                        Red Hat, Inc.
lennart [at] poettering [dot] net
http://0pointer.net/lennart/           GnuPG 0x1A015CC4

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2010-02-22  8:50 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-02-17 18:15 Latency of mixer reconfiguration Lennart Poettering
2010-02-17 20:34 ` James Courtier-Dutton
2010-02-18 10:01 ` Mark Brown
2010-02-18 18:04   ` Lennart Poettering
2010-02-19  9:01     ` Jaroslav Kysela
2010-02-19  9:43       ` Mark Brown
2010-02-19  9:54     ` Mark Brown
2010-02-19 15:03       ` Lennart Poettering
2010-02-20  3:59     ` Raymond Yau
     [not found]       ` <20100221192621.GC30380@tango.0pointer.de>
2010-02-22  8:50         ` Raymond Yau

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).