[Gta04-owner] QtMoko audio state work

Bob Ham rah at settrans.net
Fri Jan 18 12:12:42 CET 2013


On Fri, 18 Jan 2013 09:17:02 +1100, NeilBrown <neilb at suse.de> wrote:
> On Thu, 17 Jan 2013 14:43:19 +0100 Radek Polak <psonek2 at seznam.cz>
wrote:

>> For me the problem was that some other program had soundcard open and
>> gta04-
>> gsm-voice-routing couldnt open it. If all programs use pulseadio then
it
>> can
>> be solved with pasuspender, but i wish that alsa had the same
>> functionality.
>> Then we could get rid of pulseaudio. Maybe something like this could be

>> achieved using alsa plugins.
> 
> The "dmix" alsa plugin is intended for this purpose.  If it is active,
then
> multiple clients can open the device and the sounds they write get mixed
> together and played.
> A problem with this is that dmix imposes a fixed  (I think) sample size,
> which implies a fixed latency which is probably more than the latency we
> want.

The period size/latency is static but configurable:

    slave {
        pcm "hw:0,0"
        period_size 1024
        buffer_size 8192
        rate 44100
     }

-- http://alsa.opensrc.org/Dmix


See also the "Plugin: dmix" section of
http://www.alsa-project.org/alsa-doc/alsa-lib/pcm_plugins.html


-- 
Bob Ham <rah at settrans.net>

for (;;) { ++pancakes; }


More information about the Gta04-owner mailing list