Unanticipated Host Error - WASAPI loopback

Really struggling with a WASAPI loopback recording of the computer audio.
Recording via microphone is fine via MME/Directsound. No issues.
As soon as I choose WASAPI to get the computer audio, then it returns the error.

Windows 10, Realtek Audio (Asus motherboard), Audacity 3.3.3
I was able to use loopback years ago, and then I am pretty sure I had it working at one point with this new version, so completely confused as to why it is now not working.

Having read a number of other threads I have:

  • checked my soundcard speaker output is on stereo not 5.1
  • rescanned audio devices
  • Check transport overdub option on/off (no impact)
  • Software playthrough on/off (no impact) - updated.

Audio Settings
WASAPI
Playback - Speakers (or thru monitor)
Recording - Speakers loopback (or thru monitor loopback)
Sample Rate 44100
Sample format: 32-bit
Buffer length: 100
Latency: -130

Again, no problem recording microphone audio on MME/Directsound. Only issue is when trying to use the loopback.

If even try and PLAY something, it also gives the error on WASAPI.

There’s a comment about giving audicity permissions, but that thread is private (or no longer exists).

You seem to be pretty thorough.

You might also check that software playthrough is not checked.

Was unchecked. Hadn’t found a post on that one. :slight_smile:
(added to opening post)

Rebooting has been know to correct this issue. Also, you may have the option of Stereo Mix. Open the Windows Sound Control Panel, Record Tab, right-click in blank space in the panel and select Show Disabled and Disconnected Devices.

Great thinking. Sadly … ahead of you.
Already did the restart. It made me to a test to prove it’s just the loopback tho.

I had the test to use my microphone on Directsound, using the speakers.
On switching to WASAPI, I left it on the microphone and it recorded.
Switched to loopback for recording, and it gave the error again.

As for Stereo Mix, it wasn’t disabled. I set it to allow recording but that also didn’t work.
What should that be set to, in your opinion?

Error:

{
“timestamp”: 1689023863,
“event_id”: “9c82d15893cb8c41ba36ba82dd9c1e57”,
“platform”: “native”,
“release”: “audacity@3.3.3”,
“contexts”: {
“os”: {
“type”: “os”,
“name”: “Windows”,
“version”: “10.0.19045”
}
},
“exception”: {
“values”: [
{
“type”: “Error”,
“value”: “Error opening recording device.\nError code: 0 Success.”,
“mechanism”: {
“type”: “runtime_error”,
“handled”: false
}
}
]
}
}

Ooooooh, actually tested using the stereo mix. Doh.
That worked.
Still a problem with loopback.

Glad to hear you got your recording working. :grinning: If you ever do get the loopback to work please share your trick here so others can try it.

This topic was automatically closed after 30 days. New replies are no longer allowed.