Audacity Bug Summary
••• Introduction •••
••• Keywords •••
    Audacity 3.0.3 development began 19th April 2021

Audacity Bugzilla



Bug 2080 - Windows: Using WASAPI, after recording, playback can fail with "opening sound device error"
Windows: Using WASAPI, after recording, playback can fail with "opening sound...
Status: RESOLVED FIXED
Product: Audacity
Classification: Unclassified
Component: Audio IO
2.3.1
Per OS Windows 10
: P4 Repeatable
Assigned To: Default Assignee for New Bugs
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2019-03-14 12:14 UTC by David Bailes
Modified: 2019-03-29 09:10 UTC (History)
5 users (show)

See Also:
Steps To Reproduce:
1. Set Audio host to WASAPI 2. choose recording and playback devices which have different default sample rates in shared mode. 3. Set overdub, and playthrough to off. 4. make a short recording. 5. playback. Fails with error dialog.
Release Note:
First Git SHA:
Group: ---
Workaround:
Closed: 2019-03-29 00:00:00
petersampsonaudacity: Test‑OK‑Win+


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description David Bailes 2019-03-14 12:14:13 UTC

    
Comment 1 David Bailes 2019-03-14 12:38:43 UTC
There's a possible fix in my fork:
https://github.com/DavidBailes/audacity/commit/a136670a187dc60a1ea59c35aabb44587a0b5256

If a developer lets me know they think it's OK, then I'll commit it.
Comment 2 David Bailes 2019-03-15 06:12:35 UTC
Changed my mind, and when for a more conservative fix, which I've committed:
https://github.com/audacity/audacity/commit/b8b2f4380efa2a42df6275482b6e718bbfe0cf0a
Comment 3 Peter Sampson 2019-03-15 14:33:25 UTC
Is this related to Bug #1968
Windows: Recording or monitoring from a USB sound device using WASAPI host yields "Error opening recording device"  ?
Comment 4 David Bailes 2019-03-16 06:33:25 UTC
(In reply to Peter Sampson from comment #3)
> Is this related to Bug #1968
> Windows: Recording or monitoring from a USB sound device using WASAPI host
> yields "Error opening recording device"  ?

They are related, in that they both involve WASAPI, and recording and playback devices which have different shared sample rates.
However, this bug was caused by an bug in the Audacity code.
Whereas bug 1968 isn't a bug, and I've made a comment to that effect in the comments in that bug.
Comment 5 Peter Sampson 2019-03-29 09:10:31 UTC
(In reply to David Bailes from comment #2)
Testing on W10 with audacity-2.3.2-alpha-203-d71a54b4e9682223802f70d2af90854d393b8789

Using My Edirol UA-1Ex as input and onboard speakers (via Realtek soundcard) as output this looks mow to be fixed.

To be sure I tried the same on 2.3.1 where it failed.