mpd configuration on macOS

General Discussion about MPD – anything that doesn't fit in the other MPD forums.
Post Reply
apastuszak
Posts: 22
Joined: May 7th, 2016, 2:27 am

mpd configuration on macOS

Post by apastuszak »

I installed mpd via brew on macOS 10.15.6.

I have an SDAC configured via USB and was trying to see if I could get bit-perfect output on the SDAC, but the only output configuration I can get to work for output is this:

Code: Select all

audio_output {
  type                  "osx"
  name                  "CoreAudio"
  mixer_type            "software"
}
When I look at the sound settings on the Mac using system_profiler SPAudioDataType, I get the following output:

Code: Select all

Audio:

    Devices:

        SDAC :

          Default Output Device: Yes
          Manufacturer: Grace Design
          Output Channels: 2
          Current SampleRate: 44100
          Transport: USB
          Output Source: Default

        Mac mini Speakers:

          Default System Output Device: Yes
          Manufacturer: Apple Inc.
          Output Channels: 2
          Current SampleRate: 48000
          Transport: Built-in
          Output Source: Mac mini Speakers
I tried to setup mpd.conf like this:

Code: Select all

audio_output {
  type                  "osx"
  name                  "SDAC"
  mixer_type            "hardware"
}
but got nowhere.

I kept getting this error:

Code: Select all

Aug 03 22:11 : exception: Failed to enable output "SDAC" (osx); Found no audio device with name 'SDAC'
Is there a way to get bit-perfect playback on OS X?
possible
Posts: 2
Joined: May 29th, 2020, 11:46 am

Re: mpd configuration on macOS

Post by possible »

Add this line to your audio_output block:

Code: Select all

device "SDAC"
If this doesn't work, try the device name that is displayed in System Configuration (should be the same, though).
apastuszak
Posts: 22
Joined: May 7th, 2016, 2:27 am

Re: mpd configuration on macOS

Post by apastuszak »

Thank you!
apastuszak
Posts: 22
Joined: May 7th, 2016, 2:27 am

Re: mpd configuration on macOS

Post by apastuszak »

That not work. Picking CoreAudio seems to be the only option that works.
possible
Posts: 2
Joined: May 29th, 2020, 11:46 am

Re: mpd configuration on macOS

Post by possible »

Just so there's no confusion, the configuration should look like this:

Code: Select all

audio_output {
  type	"osx"
  name	"CoreAudio"
  device	"SDAC"
  mixer_type	"software"
}
Note the addition of the device to the name.
apastuszak
Posts: 22
Joined: May 7th, 2016, 2:27 am

Re: mpd configuration on macOS

Post by apastuszak »

Nope, that doesn't work. This is the only thing I have gotten to work:

Code: Select all

audio_output {
  type	"osx"
  name	"CoreAudio"
  mixer_type	"hardware"
}
I don't know if that config will give me bit-perfect output.
angelus1969
Posts: 1
Joined: October 1st, 2020, 4:55 am

Re: mpd configuration on macOS

Post by angelus1969 »

Hello,

In your output of 'system_profiler SPAudioDataType' I see a space after SDAC. If you copied/pasted the output straight from your terminal, it _could_ be important.....


---
Regards,

Angelo
apastuszak
Posts: 22
Joined: May 7th, 2016, 2:27 am

Re: mpd configuration on macOS

Post by apastuszak »

I’ll give that a try in the morning and see if it works. Thanks!
apastuszak
Posts: 22
Joined: May 7th, 2016, 2:27 am

Re: mpd configuration on macOS

Post by apastuszak »

Adding the space worked! Thanks!
kevinlech
Posts: 2
Joined: October 6th, 2020, 7:31 am

Re: mpd configuration on macOS

Post by kevinlech »

This is really helpful to me, thank you
Post Reply