失眠网,内容丰富有趣,生活中的好帮手!
失眠网 > 英伟达连接蓝牙音箱 并播放音乐

英伟达连接蓝牙音箱 并播放音乐

时间:2019-04-24 11:47:30

相关推荐

英伟达连接蓝牙音箱 并播放音乐

1. 按照官方文档 使能蓝牙 音频

To ensure the bluetooth software stack is conformant for the configuration, Bluetooth audio is disabled by default. If additional bluetooth audio profiles are enabled, product conformance may be impacted.

To enable Bluetooth audio

1.For A2DP, navigate to the following files:

/etc/pulse/default.pa.hdmi

/etc/pulse/default.pa.orig

2.Uncomment the following lines to load both modules and enable the A2DP Bluetooth profile.

#.ifexists module-bluetooth-policy.so

#load-module module-bluetooth-policy

#.endif

#.ifexists module-bluetooth-discover.so

#load-module module-bluetooth-discover

#.endif

3.Navigate to the following file:

/etc/systemd/system/bluetooth.target.wants/bluetooth.service

4.Remove A2DP from thenopluginparameter list.

This change allows the A2DP plugin to be loaded and enables the Bluetooth speaker work as expected.

For example, change the following line:

ExecStart=/usr/lib/bluetooth/bluetoothd -d --noplugin=audio,a2dp,avrcp

As follows:

ExecStart=/usr/lib/bluetooth/bluetoothd -C -d --noplugin=audio,avrcp

5.Reboot the Jetson target device.

6.Pair and use your Bluetooth audio devices.

依次安装下面的包

#sudo apt-get install blueman bluez* bluetooth#sudo apt-get install dkms#sudo apt-get install pulseaudio pulseaudio-module-bluetooth pavucontrol#sudo apt-get install pulseaudio-module-bluetooth* ubuntu-desktop* unity-control-center*#sudo apt-get install libbluetooth-dev#sudo systemctl enable bluetooth#sudo vi /etc/pulse/default.pa# 将load-module module-udev-detect 都改为load-module module-udev-detect tsched=0

然后重启系统

运行pulseaudio

#pulseaudio -k#pulseaudio --start # 也可在/etc/rc.local中添加 开机运行

QT 程序 使用 QMediaPlayer 播放音乐时候 若出现Unknown module(s) in QT: multimedia 编译错误

sudo apt-get install qtmultimedia5-devsudo apt-get install libpulse-dev

若 执行QT程序 出现 no service found for - "org.qt-project.qt.mediaplayer"

sudo apt-get install libqt5multimedia5-plugins

测试播放

#sudo apt-get install sox libsox-fmt-all

#play 1.mp3

如果觉得《英伟达连接蓝牙音箱 并播放音乐》对你有帮助,请点赞、收藏,并留下你的观点哦!

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。