Bug#691081: pulseaudio: Pulse audio is unable to play samples encoded at non-44.1khz bit rates

Neal H. Walfield neal at walfield.org
Sun Oct 21 07:46:55 UTC 2012


Package: pulseaudio
Version: 2.0-6
Severity: normal

Dear Maintainer,

I'm using an openrd-client.  I installed pulseaudio in daemon mode and 
disabled autospawn for normal users.  Initially, audio appeared to be 
working fine: I could play some flac files using mplayer (with 
PULSE_SERVER=localhost) and mpd.

When I then tried to use espeak and flite, I would get a pop when the 
sample started playing, some very soft static and then another pop when 
the sample was finished.  Espeak and flite gave no indication that there 
was an error.  The produced wav file worked fine on other systems and 
even when played from the openrd with PULSE_SERVER set appropriately.  

At some point, I tried using mplayer and resampling to 44.1khz.  This 
worked.  This led me to the following bug report: 
https://bugs.launchpad.net/ubuntu/+source/speex/+bug/528524 Apparently, 
speex has problems on arm if compiled with certain flags.  I changed 
pulseaudio's resample method to trivial and now espeak and flite work.

Thanks,

Neal


-- System Information:
Debian Release: wheezy/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: armel (armv5tel)

Kernel: Linux 3.2.0-3-kirkwood
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages pulseaudio depends on:
ii  adduser                       3.113+nmu3
ii  consolekit                    0.4.5-3.1
ii  libasound2                    1.0.25-4
ii  libasound2-plugins            1.0.25-2
ii  libc6                         2.13-35
ii  libcap2                       1:2.22-1.2
ii  libdbus-1-3                   1.6.8-1
ii  libfftw3-3                    3.3.2-3.1
ii  libgcc1                       1:4.7.1-7
ii  libice6                       2:1.0.8-2
ii  libltdl7                      2.4.2-1.1
ii  liborc-0.4-0                  1:0.4.16-2
ii  libpulse0                     2.0-6
ii  libsamplerate0                0.1.8-5
ii  libsm6                        2:1.2.1-2
ii  libsndfile1                   1.0.25-5
ii  libspeexdsp1                  1.2~rc1-6
ii  libstdc++6                    4.7.1-7
ii  libsystemd-daemon0            44-4
ii  libsystemd-login0             44-4
ii  libtdb1                       1.2.10-2
ii  libudev0                      175-7
ii  libwebrtc-audio-processing-0  0.1-2
ii  libx11-6                      2:1.5.0-1
ii  libx11-xcb1                   2:1.5.0-1
ii  libxcb1                       1.8.1-1
ii  libxtst6                      2:1.2.1-1
ii  lsb-base                      4.1+Debian7
ii  udev                          175-7

Versions of packages pulseaudio recommends:
ii  gstreamer0.10-pulseaudio  0.10.31-3
ii  pulseaudio-module-x11     2.0-6
ii  rtkit                     0.10-2

Versions of packages pulseaudio suggests:
pn  paman             <none>
pn  paprefs           <none>
pn  pavucontrol       <none>
pn  pavumeter         <none>
ii  pulseaudio-utils  2.0-6

-- Configuration Files:
/etc/default/pulseaudio changed:
PULSEAUDIO_SYSTEM_START=1
DISALLOW_MODULE_LOADING=0

/etc/pulse/daemon.conf changed:
; fail = yes
; allow-module-loading = yes
; use-pid-file = yes
; local-server-type = user
; enable-shm = yes
; shm-size-bytes = 0 # setting this 0 will use the system-default, usually 64 MiB
; lock-memory = no
; cpu-limit = no
; high-priority = yes
; nice-level = -11
; realtime-scheduling = yes
; realtime-priority = 5
; exit-idle-time = 20
; scache-idle-time = 20
; dl-search-path = (depends on architecture)
; load-default-script-file = yes
; default-script-file = /etc/pulse/default.pa
; log-target = auto
; log-level = notice
; log-meta = no
; log-time = no
; log-backtrace = 0
; resample-method = speex-float-3
resample-method = trivial
; enable-remixing = yes
; enable-lfe-remixing = no
; flat-volumes = 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-rttime = 1000000
; default-sample-format = s16le
; default-sample-rate = 44100
; alternate-sample-rate = 48000
; default-sample-channels = 2
; default-channel-map = front-left,front-right
; default-fragments = 4
; default-fragment-size-msec = 25
; enable-deferred-volume = yes
; deferred-volume-safety-margin-usec = 8000
; deferred-volume-extra-delay-usec = 0

/etc/pulse/default.pa changed:
..nofail
..fail
load-module module-device-restore
load-module module-stream-restore
load-module module-card-restore
load-module module-augment-properties
..ifexists module-udev-detect.so
load-module module-udev-detect
..else
load-module module-detect
..endif
..ifexists module-jackdbus-detect.so
..nofail
load-module module-jackdbus-detect
..fail
..endif
..ifexists module-bluetooth-discover.so
load-module module-bluetooth-discover
..endif
..ifexists module-esound-protocol-unix.so
load-module module-esound-protocol-unix
..endif
load-module module-native-protocol-unix
load-module module-esound-protocol-tcp auth-ip-acl=127.0.0.1;192.168.20.0/24
load-module module-native-protocol-tcp auth-ip-acl=127.0.0.1;192.168.20.0/24
load-module module-zeroconf-publish
..ifexists module-gconf.so
..nofail
load-module module-gconf
..fail
..endif
load-module module-default-device-restore
load-module module-rescue-streams
load-module module-always-sink
load-module module-intended-roles
load-module module-suspend-on-idle
..ifexists module-console-kit.so
load-module module-console-kit
..endif
..ifexists module-systemd-login.so
load-module module-systemd-login
..endif
load-module module-position-event-sounds
load-module module-filter-heuristics
load-module module-filter-apply
..ifexists module-dbus-protocol.so
load-module module-dbus-protocol
..endif
load-module module-switch-on-port-available

/etc/pulse/system.pa changed:
..ifexists module-udev-detect.so
load-module module-udev-detect
..else
load-module module-detect
..endif
..ifexists module-esound-protocol-unix.so
load-module module-esound-protocol-unix auth-anonymous=1
..endif
load-module module-native-protocol-unix auth-anonymous=1
load-module module-stream-restore
load-module module-device-restore
load-module module-card-restore
load-module module-default-device-restore
..ifexists module-dbus-protocol.so
load-module module-dbus-protocol access=local,remote
..endif
load-module module-esound-protocol-tcp auth-ip-acl=127.0.0.1;192.168.20.0/24 auth-anonymous=1
load-module module-native-protocol-tcp auth-ip-acl=127.0.0.1;192.168.20.0/24 auth-anonymous=1
load-module module-zeroconf-publish
load-module module-rescue-streams
load-module module-always-sink
load-module module-suspend-on-idle
load-module module-position-event-sounds


-- no debconf information



More information about the pkg-pulseaudio-devel mailing list