我有2个设备正在连接,我可以在一个设备上播放声音,而不能在另一个设备上播放
我尝试使用mpg123和mpg321和aplay,但它们会产生类似的问题。
pi@raspberrypi:~ $bluetoothctl devices
Device FC:58:FA:7C:33:42 SBL 3 C3
Device 00:0B:D5:F5:F8:B9 JABRA DRIVE
$bluetoothctl info 00:0B:D5:F5:F8:B9
Device 00:0B:D5:F5:F8:B9 (public)
Name: JABRA DRIVE
Alias: JABRA DRIVE
Class: 0x00240404
Icon: audio-card
Paired: yes
Trusted: yes
Blocked: no
Connected: yes
LegacyPairing: no
UUID: Headset (00001108-0000-1000-8000-00805f9b34fb)
UUID: Audio Sink (0000110b-0000-1000-8000-00805f9b34fb)
UUID: Handsfree (0000111e-0000-1000-8000-00805f9b34fb)
$bluetoothctl info FC:58:FA:7C:33:42
Device FC:58:FA:7C:33:42 (public)
Name: SBL 3 C3
Alias: SBL 3 C3
Class: 0x00260404
Icon: audio-card
Paired: yes
Trusted: yes
Blocked: no
Connected: yes
LegacyPairing: no
UUID: Serial Port (00001101-0000-1000-8000-00805f9b34fb)
UUID: Audio Sink (0000110b-0000-1000-8000-00805f9b34fb)
UUID: A/V Remote Control Target (0000110c-0000-1000-8000-00805f9b34fb)
UUID: Advanced Audio Distribu.. (0000110d-0000-1000-8000-00805f9b34fb)
UUID: A/V Remote Control (0000110e-0000-1000-8000-00805f9b34fb)
现在可以在一台设备上播放,它可以正常工作
$aplay -D bluealsa:DEV=FC:58:FA:7C:33:42,PROFILE=a2dp file_example_WAV_1MG.wav
Playing WAVE 'file_example_WAV_1MG.wav' : Signed 16 bit Little Endian, Rate 8000 Hz, Stereo
在第二台设备上播放会产生未找到的pcm
$aplay -D bluealsa:DEV=00:0B:D5:F5:F8:B9,PROFILE=a2dp file_example_WAV_1MG.wav
ALSA lib ../../../src/asound/bluealsa-pcm.c:718:(_snd_pcm_bluealsa_open) Couldn't get BlueALSA PCM: PCM not found
aplay: main:828: audio open error: No such device