What to Do If the "WASRecord: pAudioClient->Initialize failed. (hr=0x80070005)" Error Occurs

Using oCam at work or school? A license is required, and it removes all ads, including this window. See the paid version →

The "WASRecord: pAudioClient->Initialize failed. (hr=0x80070005)" error can occur when microphone permission has been disabled on Windows 10 or later. This happens because oCam does not have the required permission to access the microphone. Below is a detailed explanation of how to resolve this issue.


For oCam to use the microphone properly, microphone access must be enabled in the Windows Privacy settings. Follow the steps below to check and adjust the setting:

 


 

1. Open the Windows Start menu and click 'Settings' (the gear icon).

2. In the Settings window, select 'Privacy'.

3. Click 'Microphone' in the left menu.

4. Check whether the 'Microphone access for this device' option is turned on. If it is turned off, click the switch to turn it on.

5. Check whether 'Allow apps to access your microphone' is turned on. If this setting is disabled, apps such as oCam cannot use the microphone. Make sure it is turned on, then save the setting.


 


After changing the setting, restart oCam and try recording with the microphone again. If the permission has been granted properly, the "WASRecord: pAudioClient->Initialize failed. (hr=0x80070005)" error is likely to be resolved.


If the problem continues, check the microphone device settings themselves in Control Panel > Sound > Recording tab, or try selecting the microphone input source again in oCam's 'Sound' settings. In addition, updating Windows and oCam to the latest version may also help.

Another helpful tip

What to Do If the "Failed to get path of 64-bit Common Files directory" Error Occurs When Installing oCam

In some cases, you may need to modify the Windows Registry to fix an oCam setting or issue. Below is a detailed explanation of how to use the Registry Editor to add the required key values.


1. Press Windows key + R on your keyboard to open the Run dialog box.

2. Type `regedit` in the Run dialog box and click the 'OK' button to launch the Registry Editor.

3. When the Registry Editor opens, follow the instructions in the video below to complete the required settings:  

https://youtu.be/6GyJV5SgZsY

4. As instructed in the video, add the following Registry key values:  

   - CommonFilesDir: `C:\Program Files\Common Files`  

   - ProgramFilesDir: `C:\Program Files`

5. After adding the Registry key values, close the Registry Editor and restart your computer to apply the changes.


Because editing the Registry directly affects system settings, it is important to back up the Registry before making changes or follow the instructions in the video exactly. The added key values help oCam reference the correct file paths and can be useful for resolving certain installation or launch issues. After completing the steps, run oCam and check whether the problem has been resolved.