Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1360288
  • 博文数量: 145
  • 博客积分: 1440
  • 博客等级: 少尉
  • 技术积分: 2986
  • 用 户 组: 普通用户
  • 注册时间: 2012-07-24 23:47
个人简介

我一直在走,至少还有条路,也好于无路可走…

文章分类

全部博文(145)

文章存档

2023年(1)

2017年(2)

2016年(5)

2015年(13)

2014年(13)

2013年(70)

2012年(41)

分类: LINUX

2013-05-03 09:47:58

今天想听听音乐的,用mplayer打开报错
[AO OSS] audio_setup:无法打开音频设备 /dev/dsp:Device or resource busy
  1 #!/bin/bash
  2 if [ -e  /dev/dsp  ];then
  3 echo "设备可以正常启用!"
  4 else
  5  mknod /dev/dsp c 14 3
  6 chmod 666 /dev/dsp
  7 echo "正在启动,马上就好!"
  8 fi
 于是就写了个脚本生成音频设备! 还是不行!老是说设备被占用
用gmplayer打开报:配置文件错误
运行过mplayer后,会在~/.mplayer/下生成gui.conf,我出错的原因是该配置文件的11~16行为:
equ_channel_1 = 前右
equ_channel_2 = 前左
equ_channel_3 = 后右
equ_channel_4 = 后左
equ_channel_5 = 中间
正在退出...(致命错误)
rm -rf /root/.mplayer/gui.conf  #删除掉配置文件就好了!但是还报占用!
[root@cheng Songbird]# lsof |grep pcm
npviewer. 4116      root  mem       REG               8,19    23896    1188476 /usr/lib64/alsa-lib/libasound_module_pcm_pulse.so
[root@cheng Songbird]# pkill npviewer         #杀掉进程就好了
再次打开就ok了!



阅读(2571) | 评论(0) | 转发(0) |
0

上一篇:cacti监控mysql

下一篇:Python

给主人留下些什么吧!~~