注册 登录
编程论坛 Linux系统管理

Fedora 14 mplayer 播放音乐,每次没有声音。输入#mknod /dev/dsp c 14 3 #chmod 666 /dev/dsp才可以

s010084366 发布于 2013-01-26 13:41, 7295 次点击
每次开机之后使用都没有声音 输入上面的两行命令才行。请问怎么解决?[root@localhost Downloads]# mplayer *.aac
MPlayer SVN-r31628-4.4.4 (C) 2000-2010 MPlayer Team
mplayer: could not connect to socket
mplayer: No such file or directory
Failed to open LIRC support. You will not be able to use your remote control.
Playing  曾经的最美.aac.
libavformat file format detected.
[lavf] stream 0: audio (aac), -aid 0, -alang und
Clip info:
 major_brand: mp42
 minor_version: 0
 compatible_brands: M4A mp42isom
 encoder: Nero AAC codec / 1.5.4.0
==========================================================================
Opening audio decoder: [faad] AAC (MPEG2/4 Advanced Audio Coding)
AUDIO: 44100 Hz, 2 ch, s16le, 24.0 kbit/1.70% (ratio: 3000->176400)
Selected audio codec: [faad] afm: faad (FAAD AAC (MPEG-2/MPEG-4 Audio))
==========================================================================
AO: [pulse] Init failed: Connection refused
Failed to initialize audio driver 'pulse'
[AO_ALSA] alsa-lib: pulse.c:229:(pulse_connect) PulseAudio: Unable to connect: Connection refused
[AO_ALSA] Playback open error: Connection refused
Failed to initialize audio driver 'alsa'
[AO OSS] audio_setup: Can't open audio device /dev/dsp: No such file or directory
[AO_ALSA] alsa-lib: pulse.c:229:(pulse_connect) PulseAudio: Unable to connect: Connection refused
[AO_ALSA] Playback open error: Connection refused
AO: [pulse] Init failed: Connection refused
[AO SDL] Samplerate: 44100Hz Channels: Stereo Format s16le
[AO_ALSA] alsa-lib: pulse.c:229:(pulse_connect) PulseAudio: Unable to connect: Connection refused
[AO SDL] Unable to open audio: No available audio device
DVB card number must be between 1 and 4
AO: [null] 44100Hz 2ch s16le (2 bytes per sample)
Video: no video
Starting playback...
A:  23.5 (23.4) of 268.7 (04:28.7)  1.8%                                       
Exiting... (Quit)
显示的信息如上:
1 回复
#2
s0100843662013-01-27 10:35
我的问题已解决:解决方法如下:
在/etc/rc.local里添加:
#mknod /dev/dsp c 14 3
#chmod 666 /dev/dsp
exit 0
然后就可以了
1