我只是在使用Android Studio而没有问题,然后有一次我运行该项目时,得到了一个错误列表,提示“仿真器:dsound:无法初始化DirectSoundCapture”。
我已经查找了问题,并尝试更新Windows,更新android studio,更新驱动程序,取消选中设置中的“启用即时运行以进行热插拔代码/资源更改部署”框,转到Windows设置,启用麦克风供应用程序使用,我找不到任何解决方案。
10:02 PM Emulator: dsound: Could not initialize DirectSoundCapture
10:02 PM Emulator: dsound: Reason: No sound driver is available for use, or the given GUID is not a valid DirectSound device ID
10:02 PM Emulator: dsound: Attempt to initialize voice without DirectSoundCapture object
10:02 PM Emulator: dsound: Attempt to initialize voice without DirectSoundCapture object
10:02 PM Emulator: audio: Failed to create voice `goldfish_audio_in'
10:02 PM Emulator: C:\Users\Joseph\AppData\Local\Android\Sdk\emulator\qemu\windows-x86_64\qemu-system-x86_64.exe: warning: opening audio input failed
10:02 PM Emulator: dsound: At
10:02 PM Emulator: tempt to initialize voice without DirectSoundCapture object
10:02 PM Emulator: dsound: Attempt to initialize voice without DirectSoundCapture object
10:02 PM Emulator: audio: Failed to create voice `adc'
10:02 PM Emulator: dsound: Attempt to initialize voice without DirectSoundCapture object
10:02 PM Emulator: dsound: Attempt to initialize voice without DirectSoundCapture object
10:02 PM Emulator: audio: Failed to create voice `adc'
模拟器只有一个黑屏,不会做任何其他事情,我不在乎模拟器是否发出声音,我只是想看视觉效果。
答案 0 :(得分:1)
轻松修复。...
我正在运行Windows 10,但其他版本应该相同。
右键单击右下角的音频图标,然后单击打开声音设置,然后在右窗格的输入部分下单击管理声音设备,然后在输入设备下启用立体声混音...
现在模拟器将运行,而不会出现音频错误。
答案 1 :(得分:0)
我设法通过将麦克风重新插入计算机来解决此问题。不知道为什么会导致此问题,但是一旦重新插入,错误就会消失。黑屏仍然出现,但是我在AVD管理器中制作了另一个虚拟设备,并使用了运行良好的虚拟设备。
答案 2 :(得分:0)
在构建项目时,我也遇到相同的错误,当我发现我的系统没有内置麦克风时,我连接了外部麦克风然后对我有用。
答案 3 :(得分:0)
快速解决方案是每次出现问题时从模拟器擦除数据(工具> AVD管理器>操作下的下拉菜单>擦除数据)。