我只是在没有问题的情况下使用Android Studio,然后有一次我运行项目我得到了一个错误列表,说“模拟器:dsound:无法初始化DirectSoundCapture”。
我已经查找了这个问题,并尝试更新Windows,更新安卓工作室,更新驱动程序,取消勾选设置中的“启用即时运行到热插拔代码/资源更改部署”框,转到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'
模拟器只有一个黑屏,不会做任何其他事情,我不在乎模拟器发出声音我只是想看到视觉效果。
我设法通过将麦克风插回计算机来解决问题。不知道为什么会导致问题,但一旦重新插入,错误就消失了。黑屏仍然出现,但我在AVD管理器中制作了另一个虚拟设备并使用了工作正常的设备。