主题 : 蓝牙bluez-4.60移植过程中遇到的播放问题 复制链接 | 浏览器收藏 | 打印
级别: 新手上路
UID: 3374
精华: 0
发帖: 44
金钱: 220 两
威望: 44 点
综合积分: 88 分
注册时间: 2009-01-07
最后登录: 2020-09-08
楼主  发表于: 2012-12-25 17:38

 蓝牙bluez-4.60移植过程中遇到的播放问题

我使用友善之臂的tiny210开发板,最近在移植蓝牙驱动,现在遇到了一个播放问题。
我建立了/etc/asound.conf文件,内容如下:
pcm.bluetooth {
  type bluetooth
  device 00:1C:EF:AF:59:4D
  profile "auto"
}
可是在运行mplayer的时候出现如下错误:
[root@FriendlyARM /etc]# mplayer -ao alsa:device=headset /faruxue.mp3
MPlayer SVN-r35864-snapshot-4.5.1 (C) 2000-2013 MPlayer Team

Playing /faruxue.mp3.
libavformat version 54.61.104 (internal)
Audio only file format detected.
Clip info:
Title: 发如雪
Artist: 周杰伦
Album: 十一月的萧邦
Year: 2005
Comment:
Track: 3
Genre: Pop
Load subtitles in /
==========================================================================
Requested audio codec family [mpg123] (afm=mpg123) not available.
Enable it at compilation.
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
libavcodec version 54.91.100 (internal)
AUDIO: 44100 Hz, 2 ch, floatle, 189.9 kbit/6.73% (ratio: 23736->352800)
Selected audio codec: [ffmp3float] afm: ffmpeg (FFmpeg MPEG layer-3 audio)
==========================================================================
bluetoothd[178]: Accepted new client connection on unix socket (fd=22)
bluetoothd[178]: Audio API: BT_REQUEST <- BT_GET_CAPABILITIES
bluetoothd[178]: sending error Input/output error(5)
bluetoothd[178]: Audio API: BT_ERROR -> BT_GET_CAPABILITIES
[AO_ALSA] alsa-lib: audio/pcm_bluetooth.c:1607:(audioservice_expect) BT_GET_CAPABILITIES failed : Input/output error(5)
bluetoothd[178]: Unix client disconnected (fd=22)
bluetoothd[178]: client_free(0x2a06ca30)
[AO_ALSA] Playback open error: Input/output error
Failed to initialize audio driver 'alsa:device=headset'
Could not open/initialize audio device -> no sound.
Audio: no sound
Video: no video


Exiting... (End of file)
我也不知道是什么问题,请教了?谢谢!
[ 此帖被anmyt521在2013-02-04 14:32重新编辑 ]