Laptop Sleeps When You Close the Lid, or Won't Turn Off: How to Change the Lid Close Action (Windows 10/11)
C: Drive Running Out of Space? How to Free Up Storage in Windows
PC Won't Wake From Sleep, or Wakes Up by Itself at Night? Fix It with powercfg
Beware of "Animated Wallpaper" Apps in Facebook Ads: SYS010 Quietly Puts Your Browser Under Attacker Management to Steal Cookies and EmailUsing 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.
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:
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.