Bugzilla – Bug 1968
Windows: Recording or monitoring from a USB sound device using WASAPI host yields "Error opening recording device"
Last modified: 2019-08-13 15:42:54 UTC
WASAPI host only, using a USB sound device (in my case Edirol UA-1EX with FM radio) as input with output to the PC's onboard speakers yields an Error opening recording device message. Project rate set to 44100 and then 4800 Curiously Playback to that onboard speaker with WASAPI as host works fine (with the project rate set at default 44100 or 48000. Monitoring and Recording work fine when I switch the host to MME or WDS This is not a regression - happens all the way back to at least 2.1.3
We lack a "Group" for Playback and Recording
If we do not fix this for 2.3.0 I may need to add this to the Manual's FAQ regarding "Error opening ..."
Monitoring and Recording work fine with WASAPI host if I set both the input and the output device to be the USB sound device. It is only if I have the USB device as the input and onboard Realtek/speakers as output that the error occurs ================================================= I did a little moire experimentation with WASAPI host. If I set the input device to be Realtek/on-board mic and the output device to be the USB device than I also get the "error opening sound device ..." If I set the Realtek card to be both input and output then WASAPI monitoring and recording works fine. This leads me to think that this is a rate mis-match issue' Remember that my PC with the Realtek card is fixed at 48,000 - and the Edirol UA-1EX is currently set to run at 44,100. I appear to be able to reset the Edirol to 48000 (if that works with the basic Microsoft USB drivers - the advanced drivers for the Edirol disappeared with W10)
Sorry - can't run that experiment. Although the Edorol has dip switches for setting it to 48,000 Hz (and 32 & 96 kHz) the Microsoft drivers appear to limit it to running only at 44,100 Hz But my suspicion of a rate mismatch issue remains. I do recall that earlier in 2.3.0 dev we had a problem with my 48kHZ-fixed PC not working with Audacity set to its default (and my preferred) rate of 44,100. And that was an issue that James fixed.
(In reply to Peter Sampson from comment #3) > Monitoring and Recording work fine with WASAPI host if I set both the input > and the output device to be the USB sound device. > > It is only if I have the USB device as the input and onboard > Realtek/speakers as output that the error occurs > > ================================================= > > I did a little moire experimentation with WASAPI host. > > If I set the input device to be Realtek/on-board mic and the output device > to be the USB device than I also get the "error opening sound device ..." > > If I set the Realtek card to be both input and output then WASAPI monitoring > and recording works fine. > > This leads me to think that this is a rate mis-match issue' I think this is correct. Using WASAPI in shared mode, then to have recording and playback at the same time, the default sample rates in shared mode for the recording and playback devices have to be the same. > > > > Remember that my PC with the Realtek card is fixed at 48,000 - and the > Edirol UA-1EX is currently set to run at 44,100. > > I appear to be able to reset the Edirol to 48000 (if that works with the > basic Microsoft USB drivers - the advanced drivers for the Edirol > disappeared with W10)
(In reply to David Bailes from comment #5) > (In reply to Peter Sampson from comment #3) > > Monitoring and Recording work fine with WASAPI host if I set both the input > > and the output device to be the USB sound device. > > > > It is only if I have the USB device as the input and onboard > > Realtek/speakers as output that the error occurs > > > > ================================================= > > > > I did a little moire experimentation with WASAPI host. > > > > If I set the input device to be Realtek/on-board mic and the output device > > to be the USB device than I also get the "error opening sound device ..." > > > > If I set the Realtek card to be both input and output then WASAPI monitoring > > and recording works fine. > > > > This leads me to think that this is a rate mis-match issue' > > I think this is correct. > Using WASAPI in shared mode, then to have recording and playback at the same > time, the default sample rates in shared mode for the recording and playback > devices have to be the same. Just to add that there are good reasons for this restriction, and Reaper also has this restriction. WASAPI in exclusive mode doesn't have this restriction, but is not without problems. The option is available in Reaper. I tried it and got distortion, which seems to be a problem reported by others.
I'm thinking that this is not an Audacity bug but is rather a restriction of WASAPI If we do close this as NOTABUG then I shall put a note in the Manual - I may well do that anyway
(In reply to Peter Sampson from comment #7) >If we do close this as NOTABUG then I shall put a note in the Manual - >I may well do that anyway Done - see: https://alphamanual.audacityteam.org/man/Device_Toolbar#Audio_Host
This basically works as intended - it is not an Audacity bug per se - and certainly nothing we can fix. There are also good workarounds. I can recall of no users complaining about this (apart from me!) Therefore I shall close this