PulseAudio and MPDChanging default audio device in PulseaudioHow do I load a module to PulseAudio server?How...

How can the artificial womb be made affordable for the common people?

Why did NASA use Imperial units?

How do I run a game when my PCs have different approaches to combat?

What is an Eternal Word™?

Invert Some Switches on a Switchboard

Why must API keys be kept private?

How can Kazakhstan perform MITM attacks on all HTTPS traffic?

What would be the side effects on the life of a person becoming indestructible?

What is the meaning of "you has the wind of me"?

How can I deal with someone that wants to kill something that isn't supposed to be killed?

Do Rabbis get punished in Heaven for wrong interpretations?

Can 々 stand for a duplicated kanji with a different reading?

Impact of throwing away fruit waste on a peak > 3200 m above a glacier

Who controls a summoned steed’s familiar?

What is the purpose of this "red room" in "Stranger Things"?

What the purpose of the fuel shutoff valve?

Company requiring me to let them review research from before I was hired

Sometimes you are this word with three vowels

The seven story archetypes. Are they truly all of them?

Short story where a flexible reality hardens to an unchanging one

Is it okay to paraphrase other authors' literature reviews?

Why is a dedicated QA team member necessary?

Sci-fi short story: plants attracting spaceship and using them as a agents of pollination between two planets

Where is this photo of a group of hikers taken? Is it really in the Ural?



PulseAudio and MPD


Changing default audio device in PulseaudioHow do I load a module to PulseAudio server?How to enable both built-in audio output and HDMI audio output with PulseAudio?Very low volume audio through Bluetooth since networking restartpulseaudio: auto switch sink when headphones connectedHDMI audio not working on archlinux with pulseaudiohow to route 2 instances of mpd in 2 separate pairs(stereo) of output (playback) ports in pulse audioHow many audio channels does my sound card have?re-set xfce4-pulseaudio-plugin default after HDMI monitor standbyPulseaudio loses USB DAC as default sound output when booting






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ margin-bottom:0;
}







2















Problems when using mpd with pulse



Pulseaudio was created in order to enable using more than 1 audio source for one sink (correct?). If so, it should be possible to use one sink for mpd and another audio source right? That's exactly what I'm trying to do and I can't find the way.



Relevant Info




  • I use Awesome WM and pulseaudio so I rely purely commands to change audio settings - No gnome-settings for example.

  • I use mpd as a service and the user running it is mpd in group audio.

  • I have 2 audio outputs of type pulse defined in my /etc/mpd.conf that use the following sinks:
    alsa_output.pci-0000_00_03.0.hdmi-stereo and alsa_output.pci-0000_00_1b.0.analog-stereo.

  • I can switch between those 2 audio outputs with mpc or other client for mpd like ncmpcpp.

  • This is the output of grep -E "pulse|mpd|audio":
    audio:x:29:pulse
    pulse:x:123:mpd
    pulse-access:x:124:mpd
    Bonus Question: Why are there 2 groups for pulse and what is the difference between them?

  • I use Ubuntu 16.04.


The problem is that if I want to hear music from my browser for example, I have to pause mpd and refresh the page. It's quite annoying and sometimes I have to refresh the page more than once to hear something.



What I know




  • I can view the programs that use (or want to use audio) with pacmd list-sink-inputs and I never see mpd there.

  • I know that mpd is running it's own pulseaudio session because I can see with htop/top/ps aux the following:
    doron [..] /usr/bin/pulseaudio --start --log-target=syslog -vvvv
    mpd [..] /usr/bin/pulseaudio --start --log-target=syslog -vvvv










share|improve this question





























    2















    Problems when using mpd with pulse



    Pulseaudio was created in order to enable using more than 1 audio source for one sink (correct?). If so, it should be possible to use one sink for mpd and another audio source right? That's exactly what I'm trying to do and I can't find the way.



    Relevant Info




    • I use Awesome WM and pulseaudio so I rely purely commands to change audio settings - No gnome-settings for example.

    • I use mpd as a service and the user running it is mpd in group audio.

    • I have 2 audio outputs of type pulse defined in my /etc/mpd.conf that use the following sinks:
      alsa_output.pci-0000_00_03.0.hdmi-stereo and alsa_output.pci-0000_00_1b.0.analog-stereo.

    • I can switch between those 2 audio outputs with mpc or other client for mpd like ncmpcpp.

    • This is the output of grep -E "pulse|mpd|audio":
      audio:x:29:pulse
      pulse:x:123:mpd
      pulse-access:x:124:mpd
      Bonus Question: Why are there 2 groups for pulse and what is the difference between them?

    • I use Ubuntu 16.04.


    The problem is that if I want to hear music from my browser for example, I have to pause mpd and refresh the page. It's quite annoying and sometimes I have to refresh the page more than once to hear something.



    What I know




    • I can view the programs that use (or want to use audio) with pacmd list-sink-inputs and I never see mpd there.

    • I know that mpd is running it's own pulseaudio session because I can see with htop/top/ps aux the following:
      doron [..] /usr/bin/pulseaudio --start --log-target=syslog -vvvv
      mpd [..] /usr/bin/pulseaudio --start --log-target=syslog -vvvv










    share|improve this question

























      2












      2








      2








      Problems when using mpd with pulse



      Pulseaudio was created in order to enable using more than 1 audio source for one sink (correct?). If so, it should be possible to use one sink for mpd and another audio source right? That's exactly what I'm trying to do and I can't find the way.



      Relevant Info




      • I use Awesome WM and pulseaudio so I rely purely commands to change audio settings - No gnome-settings for example.

      • I use mpd as a service and the user running it is mpd in group audio.

      • I have 2 audio outputs of type pulse defined in my /etc/mpd.conf that use the following sinks:
        alsa_output.pci-0000_00_03.0.hdmi-stereo and alsa_output.pci-0000_00_1b.0.analog-stereo.

      • I can switch between those 2 audio outputs with mpc or other client for mpd like ncmpcpp.

      • This is the output of grep -E "pulse|mpd|audio":
        audio:x:29:pulse
        pulse:x:123:mpd
        pulse-access:x:124:mpd
        Bonus Question: Why are there 2 groups for pulse and what is the difference between them?

      • I use Ubuntu 16.04.


      The problem is that if I want to hear music from my browser for example, I have to pause mpd and refresh the page. It's quite annoying and sometimes I have to refresh the page more than once to hear something.



      What I know




      • I can view the programs that use (or want to use audio) with pacmd list-sink-inputs and I never see mpd there.

      • I know that mpd is running it's own pulseaudio session because I can see with htop/top/ps aux the following:
        doron [..] /usr/bin/pulseaudio --start --log-target=syslog -vvvv
        mpd [..] /usr/bin/pulseaudio --start --log-target=syslog -vvvv










      share|improve this question














      Problems when using mpd with pulse



      Pulseaudio was created in order to enable using more than 1 audio source for one sink (correct?). If so, it should be possible to use one sink for mpd and another audio source right? That's exactly what I'm trying to do and I can't find the way.



      Relevant Info




      • I use Awesome WM and pulseaudio so I rely purely commands to change audio settings - No gnome-settings for example.

      • I use mpd as a service and the user running it is mpd in group audio.

      • I have 2 audio outputs of type pulse defined in my /etc/mpd.conf that use the following sinks:
        alsa_output.pci-0000_00_03.0.hdmi-stereo and alsa_output.pci-0000_00_1b.0.analog-stereo.

      • I can switch between those 2 audio outputs with mpc or other client for mpd like ncmpcpp.

      • This is the output of grep -E "pulse|mpd|audio":
        audio:x:29:pulse
        pulse:x:123:mpd
        pulse-access:x:124:mpd
        Bonus Question: Why are there 2 groups for pulse and what is the difference between them?

      • I use Ubuntu 16.04.


      The problem is that if I want to hear music from my browser for example, I have to pause mpd and refresh the page. It's quite annoying and sometimes I have to refresh the page more than once to hear something.



      What I know




      • I can view the programs that use (or want to use audio) with pacmd list-sink-inputs and I never see mpd there.

      • I know that mpd is running it's own pulseaudio session because I can see with htop/top/ps aux the following:
        doron [..] /usr/bin/pulseaudio --start --log-target=syslog -vvvv
        mpd [..] /usr/bin/pulseaudio --start --log-target=syslog -vvvv







      debian pulseaudio mpd






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Jun 4 '16 at 16:20









      Doron BeharDoron Behar

      2141 silver badge12 bronze badges




      2141 silver badge12 bronze badges






















          1 Answer
          1






          active

          oldest

          votes


















          2














          I've found the Solution in archlinux's great wiki:
          https://wiki.archlinux.org/index.php/Music_Player_Daemon/Tips_and_tricks#PulseAudio.



          Notes




          • Add auth-ip-acl=127.0.0.1 right after load-module module-native-protocol-tcp command in /etc/pulse/default.pa, in that same line (and uncomment it if needed).

          • Don't use localhost as the server for mpd to talk with in /etc/mpd.conf, Use 127.0.0.1.

          • I would sudo service mpd stop before pulseaudio --kill and then sudo service mpd start.






          share|improve this answer




























            Your Answer








            StackExchange.ready(function() {
            var channelOptions = {
            tags: "".split(" "),
            id: "106"
            };
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function() {
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled) {
            StackExchange.using("snippets", function() {
            createEditor();
            });
            }
            else {
            createEditor();
            }
            });

            function createEditor() {
            StackExchange.prepareEditor({
            heartbeatType: 'answer',
            autoActivateHeartbeat: false,
            convertImagesToLinks: false,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: null,
            bindNavPrevention: true,
            postfix: "",
            imageUploader: {
            brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
            contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
            allowUrls: true
            },
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            });


            }
            });














            draft saved

            draft discarded


















            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f287678%2fpulseaudio-and-mpd%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown

























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            2














            I've found the Solution in archlinux's great wiki:
            https://wiki.archlinux.org/index.php/Music_Player_Daemon/Tips_and_tricks#PulseAudio.



            Notes




            • Add auth-ip-acl=127.0.0.1 right after load-module module-native-protocol-tcp command in /etc/pulse/default.pa, in that same line (and uncomment it if needed).

            • Don't use localhost as the server for mpd to talk with in /etc/mpd.conf, Use 127.0.0.1.

            • I would sudo service mpd stop before pulseaudio --kill and then sudo service mpd start.






            share|improve this answer






























              2














              I've found the Solution in archlinux's great wiki:
              https://wiki.archlinux.org/index.php/Music_Player_Daemon/Tips_and_tricks#PulseAudio.



              Notes




              • Add auth-ip-acl=127.0.0.1 right after load-module module-native-protocol-tcp command in /etc/pulse/default.pa, in that same line (and uncomment it if needed).

              • Don't use localhost as the server for mpd to talk with in /etc/mpd.conf, Use 127.0.0.1.

              • I would sudo service mpd stop before pulseaudio --kill and then sudo service mpd start.






              share|improve this answer




























                2












                2








                2







                I've found the Solution in archlinux's great wiki:
                https://wiki.archlinux.org/index.php/Music_Player_Daemon/Tips_and_tricks#PulseAudio.



                Notes




                • Add auth-ip-acl=127.0.0.1 right after load-module module-native-protocol-tcp command in /etc/pulse/default.pa, in that same line (and uncomment it if needed).

                • Don't use localhost as the server for mpd to talk with in /etc/mpd.conf, Use 127.0.0.1.

                • I would sudo service mpd stop before pulseaudio --kill and then sudo service mpd start.






                share|improve this answer















                I've found the Solution in archlinux's great wiki:
                https://wiki.archlinux.org/index.php/Music_Player_Daemon/Tips_and_tricks#PulseAudio.



                Notes




                • Add auth-ip-acl=127.0.0.1 right after load-module module-native-protocol-tcp command in /etc/pulse/default.pa, in that same line (and uncomment it if needed).

                • Don't use localhost as the server for mpd to talk with in /etc/mpd.conf, Use 127.0.0.1.

                • I would sudo service mpd stop before pulseaudio --kill and then sudo service mpd start.







                share|improve this answer














                share|improve this answer



                share|improve this answer








                edited 27 mins ago









                miguelsvieira

                31 bronze badge




                31 bronze badge










                answered Jun 4 '16 at 17:27









                Doron BeharDoron Behar

                2141 silver badge12 bronze badges




                2141 silver badge12 bronze badges






























                    draft saved

                    draft discarded




















































                    Thanks for contributing an answer to Unix & Linux Stack Exchange!


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid



                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.


                    To learn more, see our tips on writing great answers.




                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function () {
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f287678%2fpulseaudio-and-mpd%23new-answer', 'question_page');
                    }
                    );

                    Post as a guest















                    Required, but never shown





















































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown

































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown







                    Popular posts from this blog

                    Taj Mahal Inhaltsverzeichnis Aufbau | Geschichte | 350-Jahr-Feier | Heutige Bedeutung | Siehe auch |...

                    Baia Sprie Cuprins Etimologie | Istorie | Demografie | Politică și administrație | Arii naturale...

                    Nicolae Petrescu-Găină Cuprins Biografie | Opera | In memoriam | Varia | Controverse, incertitudini...