LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 01-13-2015, 01:07 PM   #1
iwtbf
Member
 
Registered: Apr 2009
Location: cybernetic space
Distribution: debian
Posts: 42

Rep: Reputation: 1
Trouble with mpd + pulse audio


I finally got mpd to work but one problem persists:

I can only play either music with mpd OR something else with audio(+/video). Not both at the same time. Then one or the other freezes or stop working in one manner or another.


When I first got mpd to work I could not adjust the volume so I added the user 'mpd' to the pulse group and added pulse output to my mpd.conf;



Code:
audio_output {   
        type            "pulse"
        name            "pulse audio"
}
... and commented out the other audio_input (alsa). Now my problem arises in the sense that there can only be one audio input so to speak.

I don't really know how pulse works so I'm having trouble attacking this problem.

I have a faint memory of having (and solving) this problem before. But I can't really recall how to fix this.

Any help on how to solve this would be highly appreciated!

Edit: If my problem is unclear or if I need to provide logs of any kind please tell!

Last edited by iwtbf; 01-13-2015 at 01:11 PM.
 
Old 01-13-2015, 01:24 PM   #2
273
LQ Addict
 
Registered: Dec 2011
Location: UK
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680

Rep: Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373
As I understand it you can only run one instance of PulseAudio at a time so only one user can use the sound on a particular machine. I know that if I set up mpd as the user mpd using Pulse then I am then not able to use sound at all as my day-to-day account which means I have to run mpd as my day-to-day account for it to work.
I believe it's one of the many great features of PulseAudio...
 
Old 01-13-2015, 11:12 PM   #3
pwalden
Member
 
Registered: Jun 2003
Location: Washington
Distribution: Raspbian, Ubuntu, Chrome/Crouton
Posts: 374

Rep: Reputation: 50
I believe pulse is a client-server architecture and you can run it as a system resource (at boot) with multiple non-system clients.

The out-of-the-box configuration for pulse in most distros is as a user resource. You can access the Pulseaudio org web site for how to set it up as a system resource.
 
Old 01-14-2015, 12:57 AM   #4
273
LQ Addict
 
Registered: Dec 2011
Location: UK
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680

Rep: Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373
Quote:
Originally Posted by pwalden View Post
I believe pulse is a client-server architecture and you can run it as a system resource (at boot) with multiple non-system clients.

The out-of-the-box configuration for pulse in most distros is as a user resource. You can access the Pulseaudio org web site for how to set it up as a system resource.
I shall take a look at some point but if it's possible it's certainly not advertised and I've never seen mention of it on the various sites I've found when searching how to do something simple like force PulseAudio to default to a given sound device on startup.
PulseAudio may be versatile and configurable and it may be that Debian and the likes have made a dogs breakfast of it but nothing I have read about PulseAudio gives a straight answer to anything and the best resource I found for using it with mpd was the Arch Wiki which strongly suggested that whomever wrote it hadn't got it working as anything but the current logged-in user.
 
Old 02-22-2015, 08:36 AM   #5
ax11
LQ Newbie
 
Registered: Jun 2006
Location: Berlin, Germany
Distribution: Debian
Posts: 3
Blog Entries: 1

Rep: Reputation: 0
Quick and somewhat dirty:

- change "user" in /etc/mpd.conf to your username and
- uncomment the non-optional lines for the pulse audio plugin (also in /etc/mpd.conf)
- if MPD had already been running since system start:
(
- stop mpd
- sudo chmod your_username /var/run/mpd
)
- start mpd

This should work quite well on a single-user desktop system. It's not quite the way how things should be done on a unixoid system. But that appears to anything pulse-related.

Last edited by ax11; 02-22-2015 at 08:37 AM. Reason: forrmatting ignored by frontend
 
  


Reply

Tags
mpd, pulse, pulse audio


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Pulse Audio purple52 Linux - Newbie 1 05-15-2014 09:16 PM
What is Pulse AUdio Sunfist Linux - Newbie 23 08-12-2013 05:58 PM
[SOLVED] Problem with Pulse Audio codeman1234 Linux - Software 15 01-13-2012 11:00 AM
Strange issue with mpd + ncmpcpp volume after pausing (pulse) rld Linux - Software 0 01-17-2011 12:27 AM
pulse audio sulekha Ubuntu 1 02-10-2009 05:48 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:03 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration