[pulseaudio-discuss] skipping sound for one user, but not the other

Lennart Poettering lennart at poettering.net
Tue Mar 31 03:28:29 PDT 2009


On Tue, 31.03.09 18:41, Leo List (leolist at optushome.com.au) wrote:

> I have two users on my box. For one user, the sound works perfectly, the
> other experiences 'skips'. starting pulseadio with -vvv gives the
> following output (edited)
> 
> ----------------------- works ----------------
> 
> I: client.c: Client 5 changed name from "Native client (UNIX socket
> client)" to "ALSA plug-in [amarokapp]"
> I: module-volume-restore.c: Restoring sink for
> <pulsecore/protocol-native.c$ALSA plug-in [amarokapp]>
> I: module-volume-restore.c: Restoring volume for
> <pulsecore/protocol-native.c$ALSA plug-in [amarokapp]>
> I: module-alsa-sink.c: Trying resume...
> I: module-alsa-sink.c: Resumed successfully...
> I: module-alsa-sink.c: Starting playback.
> D: module-suspend-on-idle.c: Sink alsa_output.hw_0_1 becomes idle.
> D: module-suspend-on-idle.c: Sink alsa_output.hw_0_1 becomes busy.
> I: resampler.c: Using resampler 'speex-float-1'
> I: resampler.c: Using float32le as working format.
> I: resampler.c: Choosing speex quality setting 1.
> I: sink-input.c: Created input 0 "ALSA Playback" on alsa_output.hw_0_1
> with sample spec s16le 2ch 44100Hz and channel map
> front-left,front-right
> D: memblockq.c: memblockq requested: maxlength=4194304, tlength=176384,
> base=4, prebuf=154336, minreq=22048
> D: memblockq.c: memblockq sanitized: maxlength=4194304, tlength=176384,
> base=4, prebuf=154336, minreq=22048
> 
> --------------------------------------------------

This one goes first through ALSA and then to PA.

> 
> ----------------------- skips ---------------------
> I: client.c: Created 0 "Native client (UNIX socket client)"
> I: protocol-native.c: Got credentials: uid=1001 gid=100 success=1
> I: protocol-native.c: Enabled SHM for new connection
> I: client.c: Client 0 changed name from "Native client (UNIX socket
> client)" to "amarokapp"
> I: module-volume-restore.c: Restoring sink for
> <pulsecore/protocol-native.c$amarokapp>
> I: module-volume-restore.c: Restoring volume for
> <pulsecore/protocol-native.c$amarokapp>
> I: module-alsa-sink.c: Trying resume...
> I: module-alsa-sink.c: Resumed successfully...
> I: module-alsa-sink.c: Starting playback.
> D: module-suspend-on-idle.c: Sink alsa_output.hw_0_1 becomes idle.
> D: module-suspend-on-idle.c: Sink alsa_output.hw_0_1 becomes busy.
> I: resampler.c: Using resampler 'speex-float-1'
> I: resampler.c: Using float32le as working format.
> I: resampler.c: Choosing speex quality setting 1.
> I: sink-input.c: Created input 0 "Audio Stream" on alsa_output.hw_0_1
> with sample spec s16le 2ch 44100Hz and channel map
> front-left,front-right
> D: memblockq.c: memblockq requested: maxlength=132300, tlength=88200,
> base=4, prebuf=86436, minreq=1764
> D: memblockq.c: memblockq sanitized: maxlength=132300, tlength=88200,
> base=4, prebuf=86436, minreq=1764
> 
> ------------------------------------------------------


This goes directly to PA. 

The first case has twice as much buffering (i.e. tlength) then the
second case. It's the application that asks for the buffer size.

Lennart

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



More information about the pulseaudio-discuss mailing list