Skip to content
This repository has been archived by the owner on Jan 28, 2023. It is now read-only.

dsound: Could not initialize DirectSoundCapture #246

Closed
Marietto2008 opened this issue Nov 17, 2019 · 17 comments
Closed

dsound: Could not initialize DirectSoundCapture #246

Marietto2008 opened this issue Nov 17, 2019 · 17 comments

Comments

@Marietto2008
Copy link

C:\WINDOWS\system32>C:\Programmi\qemu\qemu-system-x86_64 -m 3072 -cpu Penryn,vendor=GenuineIntel,+invtsc,vmware-cpuid-freq=on, -machine pc-q35-2.9 -smp 4,cores=2 -usb -device usb-kbd -device usb-tablet -device isa-applesmc,osk="ourhardworkbythesewordsguardedpleasedontsteal(c)AppleComputerInc" -drive if=pflash,format=raw,readonly,file=C:\Programmi\qemu\OVMF_CODE.fd -drive if=pflash,format=raw,file=C:\Programmi\qemu\OVMF_VARS.fd -smbios type=2 -device ich9-intel-hda -device hda-duplex -device ide-drive,bus=ide.2,drive=Clover -drive id=Clover,if=none,snapshot=on,format=qcow2,file=C:\Programmi\qemu\CloverNG-1920x1080.qcow2 -accel hax -device ide-drive,bus=ide.1,drive=MacHDD -drive id=MacHDD,if=none,file=e:\os\hackintosh\images\mac_hdd.img,format=qcow2 -device ide-drive,bus=ide.0,drive=MacDVD -drive id=MacDVD,if=none,snapshot=on,media=cdrom,file=e:\os\hackintosh\images\HighSierra.iso
HAX is working and emulator runs in fast virt mode.
C:\Programmi\qemu\qemu-system-x86_64: warning: Ignoring ROMD region 0x00000000ffc84000->0x0000000100000000
C:\Programmi\qemu\qemu-system-x86_64: warning: Ignoring ROMD region 0x00000000ffc00000->0x00000000ffc84000
dsound: Could not initialize DirectSoundCapture
dsound: Reason: No sound driver is available for use, or the given GUID is not a valid DirectSound device ID
dsound: Attempt to initialize voice without DirectSoundCapture object
dsound: Attempt to initialize voice without DirectSoundCapture object
audio: Failed to create voice `adc'
VCPU shutdown request
VCPU shutdown request

@HaHoYou
Copy link
Contributor

HaHoYou commented Nov 18, 2019

The guest of Darwin has not been supported so far. See same issue already reported in #149.

@HaHoYou HaHoYou closed this as completed Nov 18, 2019
@coxuintel
Copy link
Contributor

  1. For the "warning: Ignoring ROMD region" error, HAXM doesn't officially support OVMF yet.
  2. For the "dsound: Could not initialize DirectSoundCapture", check if your host audio input device works correctly (i.e. mic, aux input etc.)

@Marietto2008
Copy link
Author

Marietto2008 commented Nov 19, 2019 via email

@Marietto2008
Copy link
Author

read here : https://fabianlee.org/2018/09/13/kvm-building-the-latest-seabios-firmware-for-virtual-machines/

it seems that an alternative to OVMF is seabios. can it be used with haxm ?

@Marietto2008
Copy link
Author

@hyuan3
Copy link
Contributor

hyuan3 commented Nov 19, 2019

Seabios can be used. For OVMF support, could you try the patch below?
https://lists.sr.ht/~philmd/qemu/patches/6470

@Marietto2008
Copy link
Author

Mario@DESKTOP-N9UN2H3 MINGW64 ~
$ git config --global sendemail.smtpPass 'pass'

Mario@DESKTOP-N9UN2H3 MINGW64 ~
$ git config --global user.email "marietto2008@gmail.com"

Mario@DESKTOP-N9UN2H3 MINGW64 ~
$ git config --global user.name "marietto"

Mario@DESKTOP-N9UN2H3 MINGW64 ~
$ curl -s https://lists.sr.ht/~philmd/qemu/patches/6470/mbox | git am -3
fatal: not a git repository (or any of the parent directories): .git

@coxuintel
Copy link
Contributor

ok,but is there an alternative to OVMF ? point 2 : my host audio works correctly. Il giorno mar 19 nov 2019 alle ore 08:04 Colin Xu notifications@github.com ha scritto:

  1. For the "warning: Ignoring ROMD region" error, HAXM doesn't officially support OVMF yet. 2. For the "dsound: Could not initialize DirectSoundCapture", check if your host audio input device works correctly (i.e. mic, aux input etc.) — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub <dsound: Could not initialize DirectSoundCapture #246?email_source=notifications&email_token=AAFYNC3LWL33NON7OGUL2J3QUOFYJA5CNFSM4JOMNBB2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEENDCEA#issuecomment-555364624>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAFYNCZQT5E5H5JVKRBLULLQUOFYJANCNFSM4JOMNBBQ .
    -- Mario.

Not sure if OSX-KVM can use seabios. I could set up OSX-KVM successfully on linux host and using OVMF+KVM, but not test the seabios+HAXM combination. You may have a try.

For 2, it's a QEMU error message. I can reproduce it only by manually disable the audio input device, i.e. microphone in system settings. Otherwise, only print the ROMD error due to missing support of OVMF in HAXM. You can dig into audio/dsoundaudio.c, see why the DSound API IDirectSoundCapture_Initialize() failed. It's not likely related to HAXM.

@coxuintel
Copy link
Contributor

Mario@DESKTOP-N9UN2H3 MINGW64 ~
$ git config --global sendemail.smtpPass 'pass'

Mario@DESKTOP-N9UN2H3 MINGW64 ~
$ git config --global user.email "marietto2008@gmail.com"

Mario@DESKTOP-N9UN2H3 MINGW64 ~
$ git config --global user.name "marietto"

Mario@DESKTOP-N9UN2H3 MINGW64 ~
$ curl -s https://lists.sr.ht/~philmd/qemu/patches/6470/mbox | git am -3
fatal: not a git repository (or any of the parent directories): .git

emmm looks like your pwd is not inside local QEMU repo.

@Marietto2008
Copy link
Author

how can I place my pwd inside local QEMU repo ?

@coxuintel
Copy link
Contributor

how can I place my pwd inside local QEMU repo ?

Are you compiling QEMU your self? If not, you may need compile them as guided here:
https://wiki.qemu.org/Hosts/W32#Native_builds_with_Mingw-w64

Get the source code first. Since you are using mingw, the syntax to change path is:
cd /c/full_path_to_qemu_src.
Then you can apply the patch. If git am doesn't work, simply modify the change manually, it's quite short.

@Marietto2008
Copy link
Author

I'm on Windows 10 64 bit. To do what you say I need a full and detailed tutorial. Otherwise it goes beyond my abilities. (I'm an hobbyst)

@coxuintel
Copy link
Contributor

QEMU is not maintained by HAXM so we don't have a ready guide for it. The link I posted is from QEMU community which I think it's the best reference.
For the OVMF support, HAXM doesn't commit to support it yet, so you may still fail even you apply the patch @hyuan3 suggested, and we don't have plane recently to fix issues related to OVMF. The suggestion is to temporarily find OSX on QEMU with seabios.
For the DirectSoundCapture error, it's not likely HAXM related but related to your host audio device/driver state. You could check QEMU community see if there is similar one. TO debug yourself, you could check the code as I mentioned above.

Thanks for your interest to running OSX on HAXM accelerated QEMU.

@nevilad
Copy link
Contributor

nevilad commented Feb 14, 2020

I have the same issue with DirectSoundCapture with TCG, so it is a qemu issue. My sound devices are working in the host OS.
There is a description of qemu build for windows:
https://wiki.qemu.org/Hosts/W32
but it is too complicated for a hobbyst.

@nevilad
Copy link
Contributor

nevilad commented Mar 1, 2020

This error occurs when your microphone is not working or there is none.

@arbahaam
Copy link

arbahaam commented Apr 8, 2020

Hi guys i have same issue. but it would not be fixed. When i want to open emulator in cmd give me some errors

C:\Users\ibrag>emulator @pixel2
Failed to open /qemu.conf, err: 2
HAX is working and emulator runs in fast virt mode.
dsound: Could not initialize DirectSoundCapture
dsound: Reason: No sound driver is available for use, or the given GUID is not a valid DirectSound device ID
dsound: Attempt to initialize voice without DirectSoundCapture object
dsound: Attempt to initialize voice without DirectSoundCapture object
audio: Failed to create voice goldfish_audio_in' C:\Users\ibrag\AppData\Local\Android\Sdk\emulator\qemu\windows-x86_64\qemu-system-x86_64.exe: warning: opening audio input failed dsound: Attempt to initialize voice without DirectSoundCapture object dsound: Attempt to initialize voice without DirectSoundCapture object audio: Failed to create voice adc'
emulator: ERROR: AdbHostServer.cpp:83: adb protocol fault (couldn't read status length)
emulator: INFO: boot completed
emulator: INFO: boot time 128248 ms
emulator: Increasing screen off timeout, logcat buffer size to 2M.
emulator: Revoking microphone permissions for Google App.

How can i fix it?
sorry for any mistakes

@nevilad
Copy link
Contributor

nevilad commented Apr 9, 2020

Are you trying to run android or MacOS? Please paste the full qemu command line.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants