Page 1 of 1

mono stream plays on left channel only [solved]

Posted: December 6th, 2018, 1:27 pm
by r.lucassen
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.

Re: mono stream plays on left channel only

Posted: December 6th, 2018, 4:47 pm
by max
Your MPD version is outdated and unsupported. See https://www.musicpd.org/help/

Re: mono stream plays on left channel only

Posted: December 7th, 2018, 9:16 am
by r.lucassen
I know it's outdated. I just was eager to know if there is a solution for this issue.

R.

Re: mono stream plays on left channel only

Posted: December 7th, 2018, 9:23 am
by r.lucassen
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.

Re: mono stream plays on left channel only

Posted: December 7th, 2018, 4:44 pm
by skidoo
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
    }
}

Re: mono stream plays on left channel only

Posted: December 7th, 2018, 4:51 pm
by skidoo
Or try to add

Code: Select all

format "*:*:2"
to your audio_output

Re: mono stream plays on left channel only

Posted: December 8th, 2018, 12:08 pm
by r.lucassen
Yep, the:

Code: Select all

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

R.

Re: mono stream plays on left channel only

Posted: December 10th, 2018, 6:59 am
by max
skidoo wrote:
December 7th, 2018, 4:44 pm
There is no automatic mono to stereo conversion in MPD.
Yes there is.

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

Posted: December 10th, 2018, 9:01 pm
by skidoo
@max> You're right. Found some note for my ancient multichannel audio interface and assumed it is valid for stereo too. :oops: