PulseAudio 출력과 함께 mpd를 사용하려고합니다. 따라서 다음과 같이 썼습니다 /etc/mpd.conf
.
music_directory "/mnt/dados/Musicas"
playlist_directory "~/.mpd/playlists"
db_file "~/.mpd/mpd.db"
log_file "~/.mpd/mpd.log"
pid_file "~/.mpd/mpd.pid"
state_file "~/.mpd/mpdstate"
user "renan"
audio_output {
type "pulse"
name "MPD Output"
}
mixer_type "software"
mpd는 사용자로 실행됩니다 renan
. 그러나 출력이 없습니다. mpd.log에 다음과 같이 나타납니다.
Feb 15 20:24 : output: Failed to enable "MPD Output" [pulse]: pa_context_connect() has failed: Connection refused
Feb 15 20:24 : output: Failed to enable "MPD Output" [pulse]: pa_context_connect() has failed: Connection refused
Feb 15 20:24 : output: Failed to enable "MPD Output" [pulse]: pa_context_connect() has failed: Connection refused
Feb 15 20:24 : output: Failed to enable "MPD Output" [pulse]: pa_context_connect() has failed: Connection refused
Feb 15 20:24 : output: Failed to enable "MPD Output" [pulse]: pa_context_connect() has failed: Connection refused
Feb 15 20:24 : output: Failed to enable "MPD Output" [pulse]: pa_context_connect() has failed: Connection refused
나는 아래 줄을 추가하여 ALSA를 사용하려고하면 /etc/mpd.conf
, mpd
작동하지만 차단 오디오 장치 : 나는 연극이 소리를 재생 할 수 없습니다 소리 것을 다른 소프트웨어를 열고, 그 반대의 경우.
audio_output {
type "alsa"
name "My ALSA Device"
device "hw:0,0"
format "44100:16:2"
}
나머지 시스템은 PulseAudio를 통해 오디오를 출력하는 데 문제가 없습니다. 내가 무엇을 잘못하고 있지?
x64 Arch Linux를 실행하고 다음과 같은 MPD / PulseAudio 관련 패키지가 설치되어 있습니다.
lib32-libpulse 3.0-1
libmpd 11.8.17-1
libmpdclient 2.7-1
libpulse 3.0-2
mpd 0.17.3-1
mpdscribble 0.22-6
pulseaudio 3.0-2
pulseaudio-alsa 2-2
python2-mpd 0.3.0-4
분명히 systemd로 마이그레이션 한 이후로 알려진 문제 입니다. /usr/lib/systemd/system/mpd.service
파일 을 편집 하고 줄을 추가하여 해결했습니다.
[Service]
User=renan
PAMName=system-local-login
( renan
사용자 이름으로 대체 )
그런 다음 작동하면 구성 파일에 지정한 이름으로 PulseAudio 믹서에 나타납니다.
이 기사는 인터넷에서 수집됩니다. 재 인쇄 할 때 출처를 알려주십시오.
침해가 발생한 경우 연락 주시기 바랍니다[email protected] 삭제
몇 마디 만하겠습니다