You are not logged in.

#1 2010-06-07 12:19:20

allbluedream
Member
Registered: 2008-04-06
Posts: 155

mpd + bs2b solution?

I use headphone a lot, so I think maybe bs2b would help a bit. My current music setup is mpd with pulseaudio. The problem is: if I use ladspa bs2b as ALSA plugin, I lose the ability to mix sounds; and pulseaudio's module-ladspa-sink does not yet handle the bs2b plugin. My current best option would be to ditch mpd and use audacious instead, but I do love mpd and am unwilling to do that. Do you have any suggestions?

Offline

#2 2010-06-07 13:58:09

Wintervenom
Member
Registered: 2008-08-20
Posts: 1,011

Re: mpd + bs2b solution?

I lose the ability to mix sounds [...]

Even with telling ALSA to use dmix?

Offline

#3 2010-06-08 00:46:59

allbluedream
Member
Registered: 2008-04-06
Posts: 155

Re: mpd + bs2b solution?

Thanks for the reply. Dmix doesn't seem to work. Maybe it's because I'm using PulseAudio by default, and this is causing a conflict. The reason for choosing PulseAudio is manifold. MPD with alsa tends to use a lot of CPU power, which looks silly on a laptop; and mplayer somehow just does not play well with alsa on my box... I did try OSS before but there were a lot of sound artifacts... I'm feeling like really out of options.

Last edited by allbluedream (2010-06-08 00:47:17)

Offline

#4 2010-06-08 04:00:45

ngoonee
Forum Fellow
From: Between Thailand and Singapore
Registered: 2009-03-17
Posts: 7,362

Re: mpd + bs2b solution?

Try telling the ladspa to output to the pulse output, but I think there'll be some bugs along the way. What you're having is the ladspa taking control of hw:0


Allan-Volunteer on the (topic being discussed) mailn lists. You never get the people who matters attention on the forums.
jasonwryan-Installing Arch is a measure of your literacy. Maintaining Arch is a measure of your diligence. Contributing to Arch is a measure of your competence.
Griemak-Bleeding edge, not bleeding flat. Edge denotes falls will occur from time to time. Bring your own parachute.

Offline

#5 2010-06-08 07:36:08

allbluedream
Member
Registered: 2008-04-06
Posts: 155

Re: mpd + bs2b solution?

How do I pass the ladspa output through pulse?

My /etc/asound.conf

pcm.crossfeed {
  type plug
  slave.pcm "ladspa"
}

pcm.ladspa {
  type ladspa
  slave.pcm "plughw:0,0";
  path "/usr/lib/ladspa";
  plugins [
    {
      label bs2b
      input {
        controls [ 700 4.5 ]
      }
    }
 ]
}

and related part in /etc/mpd.conf

audio_output {
        type                    "alsa"
        name                    "ALSA crossfeed"
        device                  "crossfeed"
}

Last edited by allbluedream (2010-06-08 07:37:23)

Offline

#6 2010-06-08 07:43:33

ngoonee
Forum Fellow
From: Between Thailand and Singapore
Registered: 2009-03-17
Posts: 7,362

Re: mpd + bs2b solution?

Try changing the slave to "pulse".


Allan-Volunteer on the (topic being discussed) mailn lists. You never get the people who matters attention on the forums.
jasonwryan-Installing Arch is a measure of your literacy. Maintaining Arch is a measure of your diligence. Contributing to Arch is a measure of your competence.
Griemak-Bleeding edge, not bleeding flat. Edge denotes falls will occur from time to time. Bring your own parachute.

Offline

#7 2010-06-08 07:47:52

brebs
Member
Registered: 2007-04-03
Posts: 3,742

Re: mpd + bs2b solution?

allbluedream wrote:

Dmix doesn't seem to work

See thread for my example config.

Offline

#8 2010-06-08 08:23:19

allbluedream
Member
Registered: 2008-04-06
Posts: 155

Re: mpd + bs2b solution?

Thanks, ngoonee, I tried slave.pcm "pulse", but it doesn't work.

brebs, I actually copied one of your configs around the forum, and I'm very thankful. However I'm still quite (or more) confused by alsa. Does dmix work with pulseaudio?

Offline

Board footer

Powered by FluxBB