Page 1 of 1

WSAPI error - -9996 and distortion

Posted: Thu Jan 07, 2021 12:16 pm
by TonyShelbourne
Windows: Home 10.0.19041
Audacity: 2.4.2

When I select WSAPI as Audio Host, and Speakers (Realtek(R) Audio) (loopback) as the Recording Device, the following message appears when I try to record a new track, eg with Shift+R:

Error opening recording device.
Error code: -9996 Invalid device.


When I select WSAPI as Audio Host, and Stereo Mix (Realtek(R) Audio) as the Recording Device, Audacity seems to record the output OK, but on playback, the sound is massively distorted. The same result happens when I select Windows Direct Sound as the Audio Host. Recording levels are all set correctly - well within clipping tolerances.

Recording is working fine through the microphone.

Any help gratefully received.

Re: WSAPI error - -9996 and distortion

Posted: Fri Jan 08, 2021 4:22 pm
by jademan
TonyShelbourne wrote:
Thu Jan 07, 2021 12:16 pm
Windows: Home 10.0.19041
Audacity: 2.4.2

When I select WSAPI as Audio Host, and Speakers (Realtek(R) Audio) (loopback) as the Recording Device, the following message appears when I try to record a new track, eg with Shift+R:

Error opening recording device.
Error code: -9996 Invalid device.
The same thing happens to me. :(

TonyShelbourne wrote:
Thu Jan 07, 2021 12:16 pm
When I select WSAPI as Audio Host, and Stereo Mix (Realtek(R) Audio) as the Recording Device, Audacity seems to record the output OK, but on playback, the sound is massively distorted. The same result happens when I select Windows Direct Sound as the Audio Host. Recording levels are all set correctly - well within clipping tolerances.

Recording is working fine through the microphone.

Any help gratefully received.
I cannot duplicate this distortion. I suppose you could try [speaker icon]>Sounds>Recording>Stereo Mix>Properties>Enhancements>Disable All Sound Effects.

I hope this helps. :D

Re: WSAPI error - -9996 and distortion

Posted: Fri Jan 08, 2021 4:53 pm
by TonyShelbourne
Many thanks, Jademan. It worked! I never even knew the option existed - I mean, it's not in the Sound Settings menu.

Brillo!

(Still get the same -9996 error, though. Ho hum.)

Re: WSAPI error - -9996 and distortion

Posted: Sat Jan 09, 2021 1:36 pm
by steve
In the Windows Sound control panel, ensure that the Realtek device is set to "2 channels, 44100 Hz" in both the Recording tab and the Playback tab.

To open the Windows Sound control panel:
  1. open the run dialog with Windows logo + R
  2. enter: control mmsys.cpl
  3. press the OK button

Re: WSAPI error - -9996 and distortion

Posted: Sat Jan 09, 2021 7:45 pm
by TonyShelbourne
It doesn't appear on the Playback setting: only Digital Output (AMD High Definiton Audio Device) whcih stated it's "Not plugged in" and Speakers. It's there on the Recording setting, along with Microphone.

Re: WSAPI error - -9996 and distortion

Posted: Sat Jan 09, 2021 7:49 pm
by TonyShelbourne
It's on the Recordings tab, along with Microphone. But on the Playback tab, there's "Speakers" and "Digital Output - AMD High Definition Audio Device - Not plugged in."

Re: WSAPI error - -9996 and distortion

Posted: Sat Jan 09, 2021 8:37 pm
by steve
My guess is that "Speakers" is the one that you want. (I'm assuming that you don't have any USB speakers connected).

Re: WSAPI error - -9996 and distortion

Posted: Sun Jan 10, 2021 4:58 pm
by TonyShelbourne
Well, that seems to have worked, - Lord knows why!

Though the "loopback" option needs a lot of level adjustment.

Sincere thanks, Steve. I now have a functioning laptop for recording.

Re: WSAPI error - -9996 and distortion

Posted: Sun Jan 10, 2021 5:20 pm
by steve
I think there's something weird about your device drivers - the settings that you had shouldn't be possible. However, as it's working now, best not to change it (If it's not broken, don't fix it) ;)