mono stream plays on left channel only [solved]

Need help with MPD?
Post Reply
r.lucassen
Posts: 8
Joined: March 15th, 2018, 10:33 am

mono stream plays on left channel only [solved]

Post by r.lucassen » December 6th, 2018, 1:27 pm

One of the mpd 0.19.21-1 (Debian Stretch) that I have is playing mono streams on only 1 channel (L). As other mpd instances running on Debian Stretch do not have this problem, I think it must be some ALSA config. There is no /etc/asound.conf and no ~/.asoundrc. I use an external Terratec USB sixfire soundcard. When playing the mono stream with "mplayer" the output is on both channels. This issue is mpd only, but AFAIK not an mpd problem. This is the alsa part of mpd.conf:

Code: Select all

audio_output {
        type            "alsa"
        name            "ALSA1"
        device          "hw:0,0"        # optional
        mixer_type      "hardware"      # optional
        mixer_device    "default"       # optional
        mixer_control   "Master"        # optional
        mixer_index     "0"             # optional
}
Anyone a hint why this could happen?

Richard.
Last edited by r.lucassen on December 8th, 2018, 12:22 pm, edited 1 time in total.

max
Forum team
Posts: 800
Joined: January 15th, 2013, 3:43 pm

Re: mono stream plays on left channel only

Post by max » December 6th, 2018, 4:47 pm

Your MPD version is outdated and unsupported. See https://www.musicpd.org/help/

r.lucassen
Posts: 8
Joined: March 15th, 2018, 10:33 am

Re: mono stream plays on left channel only

Post by r.lucassen » December 7th, 2018, 9:16 am

I know it's outdated. I just was eager to know if there is a solution for this issue.

R.

r.lucassen
Posts: 8
Joined: March 15th, 2018, 10:33 am

Re: mono stream plays on left channel only

Post by r.lucassen » December 7th, 2018, 9:23 am

It also means that there is no support for mpd that is running on a stable version of one of the biggest distributions. And I'm not going to upgrade to an unstable or testing version, nor I want to run into a dependency hell to upgrade mpd.

R.

skidoo
Posts: 151
Joined: April 28th, 2013, 10:06 pm
Location: Western Germany

Re: mono stream plays on left channel only

Post by skidoo » December 7th, 2018, 4:44 pm

There is no automatic mono to stereo conversion in MPD. Give asound.conf a try:

Code: Select all

pcm.!default dualmono

pcm.dualmono {
    type route
    slave.pcm "hw:0"
    ttable {
        0.0 1    # in-channel 0, out-channel 0, 100% volume
        0.1 1    # in-channel 0, out-channel 1, 100% volume
    }
}

skidoo
Posts: 151
Joined: April 28th, 2013, 10:06 pm
Location: Western Germany

Re: mono stream plays on left channel only

Post by skidoo » December 7th, 2018, 4:51 pm

Or try to add

Code: Select all

format "*:*:2"
to your audio_output

r.lucassen
Posts: 8
Joined: March 15th, 2018, 10:33 am

Re: mono stream plays on left channel only

Post by r.lucassen » December 8th, 2018, 12:08 pm

Yep, the:

Code: Select all

format "*:*:2"
did the job. Thnx!

R.

max
Forum team
Posts: 800
Joined: January 15th, 2013, 3:43 pm

Re: mono stream plays on left channel only

Post by max » December 10th, 2018, 6:59 am

skidoo wrote:
December 7th, 2018, 4:44 pm
There is no automatic mono to stereo conversion in MPD.
Yes there is.

skidoo
Posts: 151
Joined: April 28th, 2013, 10:06 pm
Location: Western Germany

Re: mono stream plays on left channel only [solved]

Post by skidoo » December 10th, 2018, 9:01 pm

@max> You're right. Found some note for my ancient multichannel audio interface and assumed it is valid for stereo too. :oops:

Post Reply