Depuis jaunty, j'ai pas mal de problèmes avec pulseaudio, les fameuses "saccades", ou un son de mauvais qualité (en peu dommage avec une carte son optique).
Aucun tuto m'a permis de résoudre le problèmes ( droits "temps réel", high-priorityshedulging).
J'ai remarqué que une fois le processus lancé en root, no problemo tout marche niquel ! ( bug noyau linux avec les priorités ??).
Donc voila je vous explique comment faire de même, attention, cette manip n'est pas forcément très sécuritaire !
Depuis jaunty, il arrive que le son saccade avec pulseaudio. Chez moi, le son saccade toujours, malgré le temps réel.
Mais lancé en tant que root, plus de problèmes.
Editez /etc/pulse/daemon.conf comme ceci :
# This file is part of PulseAudio.
#
# PulseAudio is free software; you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# PulseAudio is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public License
# along with PulseAudio; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
# USA.
## Configuration file for the PulseAudio daemon. See pulse-daemon.conf(5) for
## more information. Default values a commented out. Use either ; or # for
## commenting.
daemonize = no
fail = yes
disallow-module-loading = no
disallow-exit = no
use-pid-file = yes
system-instance = yes
disable-shm = no
shm-size-bytes = 0 # setting this 0 will use the system-default, usually 64 MiB
high-priority = yes
nice-level = -11
realtime-scheduling = yes
; realtime-priority = 5
; exit-idle-time = 20
; module-idle-time = 20
; scache-idle-time = 20
; dl-search-path = (depends on architecture)
; load-default-script-file = yes
; default-script-file =
; log-target = auto
; log-level = notice
resample-method = src-linear
; disable-remixing = no
; disable-lfe-remixing = yes
no-cpu-limit = yes
; rlimit-fsize = -1
; rlimit-data = -1
; rlimit-stack = -1
; rlimit-core = -1
; rlimit-as = -1
; rlimit-rss = -1
; rlimit-nproc = -1
; rlimit-nofile = 256
; rlimit-memlock = -1
; rlimit-locks = -1
; rlimit-sigpending = -1
; rlimit-msgqueue = -1
; rlimit-nice = 31
; rlimit-rtprio = 9
; rlimit-rtttime = 1000000
; default-sample-format = s16le
; default-sample-rate = 44100
default-sample-channels = 2
default-fragments = 8
default-fragment-size-msec = 5
Par défaut, les flux ne pourront pas êtres modifiés par pavucontrol, pour ceci, décommentez la ligne de /etc/pulse/default.pa :
load-module module-esound-protocol-tcp
Enfin, comme le lanceur d'Ubuntu ne prend pas en compte notre configuration ( à confirmer), il faut lui dire qu'on est plus en per-user sessions, commentez ces lignes de /etc/init.d/pulseaudio :
#if [ "$PULSEAUDIO_SYSTEM_START" != "1" ]; then
# log_warning_msg "PulseAudio configured for per-user sessions"
# exit 0
#fi
Vous pouvez maintenant relancer pulseaudio
pulseaudio -k
sudo /etc/init.d/pulseaudio start
J'ai pis cette manip sur la page de pulseaudio, j'ai peut-être oublié quelques éléments ( j'ai fait pas mal de trucs avant), merci de signaler tout bug.