⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 readme

📁 蓝牙通讯协议中A2DVP应用的程序
💻
字号:
Release Notes0.62 : server is a daemon. added service /etc/init.d script.  added scripts to install libsbc and pybluez   added setup script to install0.6 : AVRCP emulates lircd 0.51: added realtime privs for the processINSTALLlibsbc (http://sbc.sf.net); check for /usr/lib/libsbc.so.  if not installed, then run install script:  sudo ./install_libsbcpybluez (http://org.csail.mit.edu/pybluez/)  if not installed, then run install script:  sudo ./install_pybluezto install a2dp-python run:sudo python setup.py installUSAGE:put this in your .asoundrc filepcm.a2dpcopy {            type plug            slave {                  pcm "tee:default,'/tmp/a2dpipe', raw"                  rate 48000                  channels 2             }}pcm.a2dp {            type plug            slave {                  pcm "file:'/tmp/a2dpipe', raw"                  rate 48000                  channels 2             }}make pipe by: mkfifo /tmp/a2dpipestart by python a2dpd.pystop by killing the processselect alsa output pcm device a2dpcopyfor mplayer: -ao alsa:device=a2dpcopyIn such setup the sound will be present in the alsa default deviceand be copied to the headphones. The sound timing is driven by alsa,if headphones are disconnected or out of reach the server will justdrop packets, and alsa device will notice nothing. The sound betweenalsa device and the headphones is out of sync by constant delayof about 400 ms.To send sound just to headphones select alsa output pcm device a2dpand set ismaster=1 close to the end of the /etc/a2dpd.conf file.If the server uses alsa timing (i.e., ismaster==0), some dropoutscan be experienced due to (if) the timing differencesin alsa and headphones.A2DP server works with many ACP (headphones) simultaneously if thedefault link policy is set up as master, i.e., setlm master in /etc/bluetooth/hcid.conf To initiate connection with the server press PLAY button on the headphones.To stop connection just switch off the headphones.To connect with the server for the first time, or to reconnect after theheadphones were connected with another device assign address of yourheadphones to myaddr variable in /etc/a2dpd.conf file, switch on the headphones andrestart the server. AVRCP->lircdenable lirc support in applications (mplayer, xmms, audacious, vlc)append the provided sample lircrc file to your ~/.lircrc filestart by python avrcp_lircd.pystop by killing the process.To use start/stop script a2dpd:start/stop service by sudo /etc/init.d/a2dpd start/stop or use yourconfigurational manager to add the service to boot up process.

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -