Audio and music on Unix - Desktop Customization & Workflow

Users browsing this thread: 2 Guest(s)
venam
Administrators
Here's my new audio horror story on Unix.

I bought a usb headset (headphone+microphone) yesterday.
I plug it in and it doesn't magically work so I dive into documentation and online posts.
Pavucontrol popped up, it is an application that let you interface with pulseaudio. It didn't work on my Arch machine and I decided to give it a try on my Debian box. It worked flawlessly.
After doing a diff of the pulse configuration files I found my issue, that's what worked for me:
Code:
http://pub.iotek.org/p/vEOlSe3
[+] Uploaded file client.conf
http://pub.iotek.org/p/YxGaVtP
[+] Uploaded file daemon.conf
http://pub.iotek.org/p/YvLFHBI
[+] Uploaded file default.pa
http://pub.iotek.org/p/fBmZTsU
[+] Uploaded file default.pa.pacnew
http://pub.iotek.org/p/7m4JbNr
[+] Uploaded file system.pa
It also automatically switches to the usb headset when connected.

But there was still an issue I couldn't hear any sound as a normal user. I was firing mplayer to test the audio and after hours of debugging the .mplayer/config had this faulty line:
Code:
ao=alsa
I swapped alsa by pulse and this solved it.

Next on the list: MPD wasn't using my pulse configuration. As "I discovered in the manual", mpd lauches it's own instance of pulse when started as a global daemon and thus I had to switch from a global to a local setting.

Done... Still no sound.

I rechecked my .mpdconfig over and over again trying weird things that made no sense to finally find my issue:
Code:
audio_output {
    type                    "fifo"
    name                    "my_fifo"
    path                    "/tmp/mpd.fifo"
    format                  "44100:16:2"
}


audio_output {
       type     "pulse"
       name     "MPD - music server"
       server   "127.0.0.1"
}

I had those lines for the audio output. The first one being for the "artsy" in ncmpcpp and second for my pulse output.

However I didn't know that pulse had to listen on a TCP port to be usable from MPD localhost; the "server 127.0.0.1" in the above config.

Adding this line to /etc/pulse/default.pa made everything finally work.
Code:
load-module module-native-protocol-tcp auth-ip-acl=127.0.0.1


Messages In This Thread
Audio and music on Unix - by venam - 23-10-2015, 01:40 PM
RE: Audio and music on Unix - by chc4 - 23-10-2015, 02:46 PM
RE: Audio and music on Unix - by Wildefyr - 23-10-2015, 03:26 PM
RE: Audio and music on Unix - by Houseoftea - 23-10-2015, 03:31 PM
RE: Audio and music on Unix - by ninjacharlie - 23-10-2015, 07:24 PM
RE: Audio and music on Unix - by darthlukan - 24-10-2015, 07:02 AM
RE: Audio and music on Unix - by pranomostro - 24-10-2015, 11:31 AM
RE: Audio and music on Unix - by z3bra - 24-10-2015, 07:25 PM
RE: Audio and music on Unix - by apk - 25-10-2015, 03:41 PM
RE: Audio and music on Unix - by kirby - 27-10-2015, 09:34 PM
RE: Audio and music on Unix - by Wildefyr - 28-10-2015, 09:01 PM
RE: Audio and music on Unix - by z3bra - 29-10-2015, 07:29 AM
RE: Audio and music on Unix - by darthlukan - 29-10-2015, 08:13 AM
RE: Audio and music on Unix - by Wildefyr - 29-10-2015, 03:05 PM
RE: Audio and music on Unix - by z3bra - 29-10-2015, 04:35 PM
RE: Audio and music on Unix - by Wildefyr - 29-10-2015, 11:03 PM
RE: Audio and music on Unix - by venam - 06-11-2015, 04:42 AM
RE: Audio and music on Unix - by z3bra - 06-11-2015, 06:25 AM
RE: Audio and music on Unix - by venam - 11-11-2015, 04:54 AM
RE: Audio and music on Unix - by ChefIronBelly - 13-11-2015, 12:11 PM
RE: Audio and music on Unix - by venam - 03-04-2016, 06:11 AM
RE: Audio and music on Unix - by ninjacharlie - 03-04-2016, 04:19 PM
RE: Audio and music on Unix - by arcetera - 03-04-2016, 07:20 PM
RE: Audio and music on Unix - by tudurom - 04-04-2016, 10:16 AM
RE: Audio and music on Unix - by ninjacharlie - 04-04-2016, 11:03 AM
RE: Audio and music on Unix - by arcetera - 04-04-2016, 11:50 AM
RE: Audio and music on Unix - by tudurom - 04-04-2016, 01:13 PM
RE: Audio and music on Unix - by neeasade - 04-04-2016, 01:55 PM
RE: Audio and music on Unix - by pfr - 23-02-2022, 12:49 AM
RE: Audio and music on Unix - by venam - 23-02-2022, 02:45 AM
RE: Audio and music on Unix - by pfr - 23-02-2022, 05:06 AM
RE: Audio and music on Unix - by seninha - 23-02-2022, 11:15 AM
RE: Audio and music on Unix - by pfr - 23-02-2022, 07:28 PM
RE: Audio and music on Unix - by pfr - 02-03-2022, 09:07 AM