michaelmob / WebMCam

Capture frames in real-time and save them as WebM.
GNU General Public License v3.0
284 stars 27 forks source link

Fix for Issue #68 #72

Closed Wixely closed 3 years ago

Wixely commented 3 years ago

"Headphone Virtualization" audio enhancement feature in Windows sound devices causes the audio drivers to return a fake number of channels (8) to the audio library. Changing to CSCore is not enough to fix the issue but CSCore allows us to specify the wave format when creating our WasapiLoopbackCapture. The workaround for this is to check for the specific error (0x88890008) and if more than 2 audio channels are being returned then to try again with a limit of 2 channels.

michaelmob commented 3 years ago

Works great! Thank you so much for contributing