Opened 10 years ago
Closed 8 years ago
#46325 closed defect (fixed)
mpd @0.18.21_0: unable to detect an audio device
Reported by: | bnilsson11 | Owned by: | macports-tickets@… |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.3.3 |
Keywords: | Cc: | kurthindenburg (Kurt Hindenburg) | |
Port: | mpd |
Description (last modified by larryv (Lawrence Velázquez))
I have previously used mpd on an older MacPro1,1 with 10.9. The default audio device was detected ok.
I recently upgraded to Macpro6,1 with 10.10 Yosemite
mpd installed without errors, but will not start on my MacPro6,1:
Bengts-MacPro:mpd bnilsson$ sudo mpd server_socket: bind to '0.0.0.0:6600' failed: Address already in use (continuing anyway, because binding to '[::]:6600' succeeded) errno: Failed to open database file "/opt/local/var/lib/mpd/database": No such file or directory output: No 'audio_output' defined in config file output: Attempt to detect audio output device fatal_error: line -1: Unable to detect an audio device
/opt/local/etc/mpd.conf:
music_directory "/opt/local/var/lib/mpd/music" playlist_directory "/opt/local/var/lib/mpd/playlists" db_file "/opt/local/var/lib/mpd/database" log_file "/opt/local/var/log/mpd/log" state_file "/opt/local/var/lib/mpd/state" mixer_type "software" user "_mpd"
Change History (8)
comment:1 Changed 10 years ago by larryv (Lawrence Velázquez)
Description: | modified (diff) |
---|---|
Owner: | changed from macports-tickets@… to rmstonecipher@… |
Port: | mpd added; mpd@0.18.21 removed |
Summary: | mpd unable to detect an audio device → mpd @0.18.21_0: unable to detect an audio device |
comment:2 Changed 10 years ago by bnilsson11
comment:3 Changed 9 years ago by piotr.boguszewski@…
I had the same issue. it works with ao try adding following:
audio_output { type "ao" name "My Mac Device" mixer_type "software" }
comment:4 follow-up: 5 Changed 9 years ago by rmstonecipher@…
Your solution is the right one. See https://trac.macports.org/ticket/46861#comment:3 for a detailed explanation. I will make sure output type ao is set in the default mpd.conf to save future new users from similar hiccups.
comment:5 follow-up: 6 Changed 9 years ago by bnilsson11
Replying to rmstonecipher@…:
Your solution is the right one. See https://trac.macports.org/ticket/46861#comment:3 for a detailed explanation. I will make sure output type ao is set in the default mpd.conf to save future new users from similar hiccups.
Will there ever be any alternative to libao? The main drawback is that the audio format is not transferred from the file format (e.g. 24bit 96kHz) to the audio device. You have to go into "Sound MIDI settings" to control this. It would be better if the file format would go unchanged to the audio device. Is it possible to enable this behavior in libao?
comment:6 Changed 9 years ago by rmstonecipher@…
Replying to bnilsson11@…:
snip
Will there ever be any alternative to libao? The main drawback is that the audio format is not transferred from the file format (e.g. 24bit 96kHz) to the audio device. You have to go into "Sound MIDI settings" to control this. It would be better if the file format would go unchanged to the audio device. Is it possible to enable this behavior in libao?
If another audio sink is kept current upstream for OS X compatibilty and will provide a better user experience I would be all for it. At the time of my decision to leave the faulty osx sink behind libao seemed like the best choice - it has relatively few dependencies - but I am open to suggestions.
In other news the sun is setting on my time with MacPorts; I'll be switching back to Linux soon and would like to leave my ports in good shape upon the date of their abandonment. Would you be interested in taking over, Bengt?
comment:7 Changed 9 years ago by mf2k (Frank Schima)
Owner: | changed from rmstonecipher@… to macports-tickets@… |
---|
rmstonecipher has retired. See #51138.
comment:8 Changed 8 years ago by kurthindenburg (Kurt Hindenburg)
Cc: | kurthindenburg added |
---|---|
Resolution: | → fixed |
Status: | new → closed |
closing per comments - FYI ao is the default
To incude a spec for the audio device is not working:
audio_output {
}
gives: fatal_error: line 8: No such audio output plugin: osx
If the detection of the default audio device is broken, it would be very useful to have some documentation on how to gather data for setting up a working "audio output" section for OSX. If indeed there is a way.