Hallo,
ich möchte auf einem Pi2(rasbian-jessie) mit MPD über Bluetoothstick Musik mit dem BT-Lautsprecher hören.
Bisher sind alle Versuche gescheitert die Ausgabe von MPD zum BT-LS zu schicken.
Nach dieser Anleitung http://www.rottenrei.be/posts/2013-07-…e-raspberry-pi/habe ich dem BT-LS erfolgreich mit mplayer Musik entlocken können. Also ist die Hardware schon mal ok.
Ziel:
*alle Programme nutzen default die Bluetoothschnittstelle
*alternativ soll die onboardcard mit alsa Ton an 3.5Klinke(mit Kabelkopfhörern reinhören) oder HDMI ausgeben können # Nebenbaustelle
*für MPD
**soll wahlweise ALSA oder Pulseaudio nutzbar sein
**soll man mit dem Mixer die Lautstärke ändern können
**Bedienung über gmpc am angeschlossenen 7"Touchdisplay oder über AndroidApp
Ist das so machbar?
Könnt Ihr mal bitte auf meine configs schauen und mir sagen was falsch ist,bitte?
Konsolenausgabe
pi@WoWaPi2:~ $ sudo /etc/init.d/mpd status
● mpd.service - Music Player Daemon
Loaded: loaded (/lib/systemd/system/mpd.service; enabled)
Active: active (running) since Mo 2016-01-04 23:11:20 CET; 1min 4s ago
Main PID: 529 (mpd)
CGroup: /system.slice/mpd.service
└─529 /usr/bin/mpd --no-daemon
Jan 04 23:11:20 WoWaPi2 systemd[1]: Started Music Player Daemon.
#mit output alsa=on / httpstrem=off / pulseaudio=off ########################################################
pi@WoWaPi2:~ $ mpc play
Axel Konrad - H.E.A.R.T. - Beat
[paused] #1/1 0:00/3:25 (0%)
volume: 95% repeat: on random: off single: off consume: off
ERROR: Failed to open audio output
#mit output alsa=on / httpstrem=on / pulseaudio=on #########################################################
pi@WoWaPi2:~ $ mpc play
Axel Konrad - H.E.A.R.T. - Beat
[playing] #1/1 0:12/3:25 (5%)
volume: 95% repeat: on random: off single: off consume: off
pi@WoWaPi2:~ $
Alles anzeigen
nach dieser Seite https://wiki.debianforum.de/MPD_als_System…_und_Pulseaudio habe ich versucht die Konfiguration vorzunehmen. Leider ist die Bluetoothanbindung nicht beschrieben.
/etc/asound.conf # ~/.asoundrc habe ich gelöscht um eine Fehlerquelle weniger zu haben
defaults.pcm.ipc_perm 0666
######################################
### Default-Device
######################################
pcm.!default {
type bluetooth
device 00:0C:8A:E4:FF:E9 #BoseBoxAdresse
profile "auto"
}
#######################################
### SoundSenke: Bluetooth-Bosebox
#######################################
pcm.btbox {
type plug
slave {
pcm {
type bluetooth
device 00:0C:8A:E4:FF:E9
profile "auto"
}
}
hint {
show on
description "Bose-Soundlink-Mini"
}
}
ctl.btbox {
type bluetooth
}
#######################################
### Soundkarte: Onboard-bcm2835-Audio
#######################################
pcm.snd_bcm2835 {
type hw
card "ALSA"
device 0
channels 2
}
ctl.snd_bcm2835 {
type hw
}
#######################################
### Dmixer
#######################################
pcm.dmixer {
type dmix
ipc_key 2024
ipc_perm 0666
slave {
pcm "snd_bcm2835"
channels 2
}
bindings {
0 0
1 1
}
}
ctl.dmixer {
type hw
card 0
}
#######################################
### Snooper
#######################################
pcm.dsnooper {
type dsnoop
ipc_key 2048
ipc_perm 0666
slave.pcm "snd_bcm2835"
slave
{
channels 2
}
bindings {
0 0
1 1
}
}
pcm.duplex {
type asym
playback.pcm "dmixer"
capture.pcm "dsnooper"
}
######################################
## eigene Kanäle für spezielle Software
######################################
### mpd-server ####
pcm.mpdvol {
type softvol
slave.pcm "duplex"
control {
name "MPD"
# card "ALSA"
device 00:0C:8A:E4:FF:E9
}
hint {
show on
description "MPD-Mixer"
}
}
ctl.mpdvol {
type hw
# card "ALSA"
device 00:0C:8A:E4:FF:E9
}
### PulseAudio ####
pcm.pvol {
type softvol
slave.pcm "duplex"
control {
name "PulseAudio"
card 0
}
hint {
show on
description "PulseAudio-Mixer"
}
}
ctl.pvol {
type hw
card "snd_bcm2835"
}
Alles anzeigen
/etc/mpd.conf # nur der Teil den ich angefasst habe
# Files and directories #######################################################
music_directory "/media/music"
playlist_directory "/media/playlists"
###############################################################################
# General music daemon options ################################################
bind_to_address "any"
###############################################################################
# Audio Output ################################################################
audio_output {
type "alsa"
name "MPD-Alsa-Output"
# device "hw:0,0" # optional
device "btbox"
# format "44100:16:2"
# mixer_type "hardware" # optional
# mixer_type "software"
# mixer_device "default" # optional
# mixer_control "PCM" # optional
# mixer_control "MPD"
# mixer_index "0" # optional
enabled "yes"
}
audio_output {
type "httpd"
name "MPD-HTTP-Stream"
encoder "lame" # optional, vorbis or lame
port "8000"
# bind_to_address "0.0.0.0" # optional, IPv4 or IPv6
quality "5.0" # do not define if bitrate is defined
# bitrate "128" # do not define if quality is defined
format "44100:16:2"
max_clients "3" # optional 0=no limit
}
audio_output {
type "pulse"
name "MPD-Pulse-Output"
# server "remote_server" # optional
server "127.0.0.1"
# sink "remote_server_sink" # optional
}
###############################################################################
Alles anzeigen
wenn noch Infos fehlen bitte nachfragen.
Ich hoffe auf eure Tips