Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Duplicate pulsaudio process #81

Open
GoogleCodeExporter opened this issue Sep 26, 2015 · 2 comments
Open

Duplicate pulsaudio process #81

GoogleCodeExporter opened this issue Sep 26, 2015 · 2 comments

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?
1. Start Ubuntu 14.04  - one pulseaudio running
teo@Kodi:~$ ps -ef | grep -e "pulse" -e "squeezelite"
teo       1522  1147  0 12:30 ?        00:00:00 /usr/bin/pulseaudio --start 
--log-target=syslog
teo       1603  1522  0 12:30 ?        00:00:00 
/usr/lib/pulseaudio/pulse/gconf-helper
teo       2645  2018  0 12:32 pts/2    00:00:00 grep --color=auto -e pulse -e 
squeezelite

2.Start Squeezelite with -o pulse as user teo
sudo start-stop-daemon --start --quiet -b -m -p /var/run/squeezelite.pid 
--chuid teo --exec /usr/bin/squeezelite-x86-64 -- -o pulse -n Obývák

3. Second pulseaudio process is out there fighting for HW with first one!!!
teo@Kodi:~$ ps -ef | grep -e "pulse" -e "squeezelite"
teo       1522  1147  0 12:30 ?        00:00:00 /usr/bin/pulseaudio --start 
--log-target=syslog
teo       1603  1522  0 12:30 ?        00:00:00 
/usr/lib/pulseaudio/pulse/gconf-helper
teo       2934     1  2 12:33 ?        00:00:00 /usr/bin/squeezelite-x86-64 -o 
pulse -n Obývák
teo       2939     1  5 12:33 ?        00:00:01 /usr/bin/pulseaudio --start 
--log-target=syslog
teo       2941  2939  0 12:33 ?        00:00:00 
/usr/lib/pulseaudio/pulse/gconf-helper

after trying play from Rhytmbox
tail /var/log/syslog
Dec 29 12:41:45 Kodi pulseaudio[1522]: [alsa-sink-HDMI 0] alsa-sink.c: Error 
opening PCM device hdmi:0: Zařízení nebo zdroj jsou používány


What is the expected output? What do you see instead?
Be able to play by squeezelite and desktop sounds same time and avoid failures 
to open hw device

What version of the product are you using? On what operating system?
Ubuntu 14.04
Squeezelite v1.6.5

Thank you!

Original issue reported on code.google.com by [email protected] on 29 Dec 2014 at 11:46

@GoogleCodeExporter
Copy link
Author

Squeezelite does not do anything specific for pulse audio it it just opens the 
output device using alsa api calls.  It is likely the problem is with your 
startup script?  Note squeezelite won't understand the -- option you have on 
the command string though.

Original comment by [email protected] on 29 Dec 2014 at 12:26

@GoogleCodeExporter
Copy link
Author

It's a problem with pulseaudio - set autospawn=no in /etc/pulse/client.conf. 
It's apparently different than the commented out autospawn=yes that's already 
there.

Original comment by [email protected] on 26 Apr 2015 at 6:02

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant