audetto
Posts: 28
Joined: Fri Feb 28, 2014 8:44 pm

Pulseaudio 6

Sun Mar 01, 2015 8:30 pm

Hi,

I'd like to use pulseaudio 6 as it has added support for bluetooth devices.
I have an mpd server running on the pi and I tried first to play via the internal audio.

I've installed pulseaudio and configured mpd to output to pulse as

audio_output {
type "pulse"
name "Local Music Player Daemon"
}

and I added

autospawn = yes

to /etc/pulse/client.conf

Things work and I get sound out, but there are 2 issues:

1) background white noise level is a lot higher with pulse that with alsa
2) the sound is not smooth, with regular "ticks" (not present with alsa)
3) seems sometimes mpc/mpd hang

has anybody tried pulseaudio in arch on raspberry and can suggest the best setup?
I've tried the pulse-rt group which is sometimes mentioned, but no improvement.

Andrea

User avatar
Douglas6
Posts: 4800
Joined: Sat Mar 16, 2013 5:34 am
Location: Chicago, IL

Re: Pulseaudio 6

Sun Mar 01, 2015 9:39 pm

I can't help much since I've never run Arch, but I've had problems with PulseAudio and the Pi's onboard audio. If you can't use a USB sound card, try these hacks.

Edit /etc/pulse/default.pa and make this change

Code: Select all

#load-module module-udev-detect
load-module module-udev-detect tsched=0
Also add the following to /boot/config.txt

Code: Select all

disable_audio_dither=1
Worth a try, anyways.

audetto
Posts: 28
Joined: Fri Feb 28, 2014 8:44 pm

Re: Pulseaudio 6

Mon Mar 02, 2015 1:02 pm

I did not see an improvement.

Today I get 2 more issues using pulse

1) mpc does not expose volume controls. it happens 50%. let;s say I do
mpc play 1 (it shows volume: n/a)
mpc play 2 (it shows volume: 30% )
2) it cannot play mp3 / m4a files
ERROR: Failed to decode ElTren.m4a

not impressed so far.
maybe this is not an arch issue and should seek help in the troubleshooting forum or in mpd mailing lists.

User avatar
Douglas6
Posts: 4800
Joined: Sat Mar 16, 2013 5:34 am
Location: Chicago, IL

Re: Pulseaudio 6

Mon Mar 02, 2015 2:25 pm

Again, I don't run Arch or PA6, but I do use mpd and PA5 everyday without problems.

johnbxpl
Posts: 6
Joined: Sat Jul 19, 2014 12:07 pm

Re: Pulseaudio 6

Tue Apr 14, 2015 9:31 pm

Same problems here on Arch with PulseAudio 6. High level of white noise and garbled audio. Problem is not just with MPD but with anything that goes through PulseAudio. If I switch MPD back to ALSA all is well.

I'd welcome any suggestions.

Regards,

John

diamondman
Posts: 1
Joined: Thu Jun 11, 2015 8:59 am

Re: Pulseaudio 6

Fri Jun 12, 2015 3:06 am

I am having a similar issue with pulse on my raspbian setup.

aplay works fine.
paplay garbles audio or is silent and then works every 8th time.
The pattern of paplay is consistently: garbled, silent, garbled, garbled, silent, garbled, silent, perfect.
Changing resampling method to trivial did not appear to help.
Issue got significantly better when I replaced the udev module loading in the client.pas/stem.pa file with

Code: Select all

load-module module-alsa-card device_id=0 tsched=true tsched_buffer_size=1048576 tsched_buffer_watermark=262144
The audio file in question was 44100khz stereo.
When paplay is working correctly (every 8th time) playing a 2nd stream (same file) at the same time will damage the audio playback. Canceling the 2nd stream will not return the 1st stream to playing correctly.

This happens with pulse2 from the raspbian package manager as well.

Music works most of the time (maybe all of the time) when using mplayer which uses a local unix socket to talk to pulse. Everything works perfect when I use a USB headset as well so it is only this built in raspberry pi audio controller. Such a weird issue.

Big fan of pulse, I hope to figure this out.

Return to “Arch”