老师说了应该写博客,防止以后碰到相同情况而忘记解决方法!
症状:
在设备管理器里没有叹号,声卡也已安装官方驱动,但是在声音和音频设备中还是显示灰色,机器也没有声音。找来找去原来是windowsaudio服务丢失了。(判断是否为windowsaudio服务引起上述声卡不能用问题的方法是在控制面板-管理工具-服务中查找是否有windowsaudio服务并查看是否已自动启动?)
解决方法:
1、将下面的文件复制到文本文件中,保存后改名为Audio.reg
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINESYSTEMCurrentControlSetServicesAudioSrv]
"DependOnService"=hex(7):50,00,6c,00,75,00,67,00,50,00,6c,00,61,00,79,00,00,00,
52,00,70,00,63,00,53,00,73,00,00,00,00,00
"Description"="管理基于 Windows的程序的音频设备。如果此服务被终止,音频设备及其音效将不能正常工作。如果此服务被禁用,任何依赖它的服务将无法启动。"
"DisplayName"="Windows Audio"
"ErrorControl"=dword:00000001
"Group"="AudioGroup"
"ImagePath"=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,
74,00,25,00,5c,00,53,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,73,
00,76,00,63,00,68,00,6f,00,73,00,74,00,2e,00,65,00,78,00,65,00,20,00,2d,00,
6b,00,20,00,6e,00,65,00,74,00,73,00,76,00,63,00,73,00,00,00
"ObjectName"="LocalSystem"
"Start"=dword:00000002
"Type"=dword:00000020
[HKEY_LOCAL_MACHINESYSTEMCurrentControlSetServicesAudioSrvParameters]
"ServiceDll"=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,
00,74,00,25,00,5c,00,53,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,
61,00,75,00,64,00,69,00,6f,00,73,00,72,00,76,00,2e,00,64,00,6c,00,6c,00,00,
00
"ServiceDllUnloadOnStop"=dword:00000001
[HKEY_LOCAL_MACHINESYSTEMCurrentControlSetServicesAudioSrvEnum]
"0"="Root\LEGACY_AUDIOSRV\0000"
"Count"=dword:00000001
"NextInstance"=dword:00000001
2、双击刚刚创建并保存的audio.reg文件,并重启机器。
情况二:存放在C:WINDOWSsystem32目录下audiosrv.dll被误删
1、下载或者找别人拷一个audiosrv.dll
2、注册一下,方法是:开始-->运行,输入 regsvr32 audiosrv.dll
3、“菜单--开始--运行中输入regedit”打开注册表[HKEY_LOCAL_MACHINESoftwareMicrosoftWindowsNTCurrentVersionSvchost]主键,然后双击窗口右侧的netsvcs,把AudioSrv添加到数值数据中去,即输入AudioSrv。然后重启电脑,把服务项目windowsaudio启动了就ok了。
摘自:
http://hi.baidu.com/%CD%AC%D0%D0%B9%B2%B7%D6%CF%ED/blog/item/3b804cc37ac1bb3ce4dd3b1a.html
http://blog.sina.com.cn/s/blog_51d19a790100bpnn.html