jerome1232
January 27th, 2009, 06:06 PM
I was messing with pulseaudio today to get the network features and I've got it working (I have a RTP multicast device, I can see it on the other computer) If I move a stream over to it, I can get it on the the other computer and I can get it on the local machine as well but the sound is VERY choppy.
According to the pulse audio the fix is to downsample the audio. I guessed that editing /etc/pulse/daemon.conf is the way to do this.
I think I have it downsampled to 4000 hz with no improvment yet. I was issuing "sudo service pulseaudio restart" commands between changes, I wasn't sure if that was actually restarting the pulse audio daemon or not so I restarted as well for good meseaure on the last change (to 4000 hz)
Here's my daemon.conf is there something I'm missing or something else to change the sampling rate?
# $Id: daemon.conf.in 2175 2008-03-27 23:39:10Z lennart $
#
# 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
; use-pid-file = yes
; system-instance = no
; disable-shm = no
; high-priority = yes
; nice-level = -11
; realtime-scheduling = no
; realtime-priority = 5
; exit-idle-time = -1
; module-idle-time = 20
; scache-idle-time = 20
; dl-search-path = (depends on architecture)
; default-script-file =
; log-target = auto
; log-level = notice
resample-method = speex-float-1
; disable-remixing = no
; no-cpu-limit = no
; rlimit-as = -1
; rlimit-core = -1
; rlimit-data = -1
; rlimit-fsize = -1
; rlimit-nofile = 256
; rlimit-stack = -1
; rlimit-nproc = -1
; rlimit-memlock = -1
; rlimit-nice = 31
; rlimit-rtprio = 9
; default-sample-format = s16le
; default-sample-rate = 4000
; default-sample-channels = 2
default-fragments = 8
default-fragment-size-msec = 10
According to the pulse audio the fix is to downsample the audio. I guessed that editing /etc/pulse/daemon.conf is the way to do this.
I think I have it downsampled to 4000 hz with no improvment yet. I was issuing "sudo service pulseaudio restart" commands between changes, I wasn't sure if that was actually restarting the pulse audio daemon or not so I restarted as well for good meseaure on the last change (to 4000 hz)
Here's my daemon.conf is there something I'm missing or something else to change the sampling rate?
# $Id: daemon.conf.in 2175 2008-03-27 23:39:10Z lennart $
#
# 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
; use-pid-file = yes
; system-instance = no
; disable-shm = no
; high-priority = yes
; nice-level = -11
; realtime-scheduling = no
; realtime-priority = 5
; exit-idle-time = -1
; module-idle-time = 20
; scache-idle-time = 20
; dl-search-path = (depends on architecture)
; default-script-file =
; log-target = auto
; log-level = notice
resample-method = speex-float-1
; disable-remixing = no
; no-cpu-limit = no
; rlimit-as = -1
; rlimit-core = -1
; rlimit-data = -1
; rlimit-fsize = -1
; rlimit-nofile = 256
; rlimit-stack = -1
; rlimit-nproc = -1
; rlimit-memlock = -1
; rlimit-nice = 31
; rlimit-rtprio = 9
; default-sample-format = s16le
; default-sample-rate = 4000
; default-sample-channels = 2
default-fragments = 8
default-fragment-size-msec = 10