Skip to content

Add "System default" option for audio devices, and ensure audio plays through new device when unpausing - #10255

Closed
ndbroadbent wants to merge 2 commits into
audacity:masterfrom
ndbroadbent:feature/system-default-device
Closed

ndbroadbent wants to merge 2 commits into
audacity:masterfrom
ndbroadbent:feature/system-default-device

Conversation

@ndbroadbent

@ndbroadbent ndbroadbent commented Jan 21, 2026 •

Copy link
Copy Markdown

Resolves: #8281, #9443

Related: #9151, #9172

Adds a “System default” audio device option and keeps Audacity synced to system device changes across platforms. Unifies Preferences and Audio Setup device selection through the same action path, disables device changes while playing/recording, and preserves paused playhead position when switching devices.

New system default option in Preferences:

image

New system default option in Audio Setup device selection:

image

Disable Audio Setup device selection during playback (to match behavior of preferences)

image
  • I signed CLA
  • The title of the pull request describes an issue it addresses
  • If changes are extensive, then there is a sequence of easily reviewable commits
  • Each commit's message describes its purpose and effects
  • There are no behavior changes unnecessary for the stated purpose of the PR

Recommended:

  • Each commit compiles and runs on my machine without known undesirable changes of behavior

QA:

  • Autobot test cases have been run

UPDATE: I also added some additional tests.

@ndbroadbent

ndbroadbent commented Jan 22, 2026 •

Copy link
Copy Markdown
Author

I ran the coderabbit CLI to review the changes, and implemented all the suggestions until it had no further comments.

❯ coderabbit review --base master --plain
Starting CodeRabbit review in plain text mode...

Connecting to review service
Setting up
Analyzing
Reviewing

Review completed ✔

(no issues found)

@ndbroadbent
ndbroadbent force-pushed the feature/system-default-device branch from d241aaa to fba2e1c Compare January 22, 2026 03:38
@ndbroadbent
ndbroadbent force-pushed the feature/system-default-device branch from ba41786 to ee3f58e Compare January 22, 2026 13:29
@kryksyh
kryksyh requested a review from luapmartin January 23, 2026 07:28
@kryksyh

kryksyh commented Jan 23, 2026

Copy link
Copy Markdown
Member

@ndbroadbent thanks! Looks good at first glance.

@ndbroadbent

ndbroadbent commented Jan 23, 2026 •

Copy link
Copy Markdown
Author

Apologies for the CI failures, I'm running the CI steps locally now and fixing the code style warning

EDIT: I pushed those fixes

Add au3audio/playback/preferences tests for system default selection and paused restart actions, and silence CoreAudio element deprecation on macOS.
@ndbroadbent
ndbroadbent force-pushed the feature/system-default-device branch from ee3f58e to 8c34deb Compare January 23, 2026 07:44
@luapmartin

Copy link
Copy Markdown
Contributor

looks nice @ndbroadbent !

@embarc-gabriel

embarc-gabriel commented Jul 13, 2026 •

Copy link
Copy Markdown
Contributor

Hi @ndbroadbent , we have been working around the same area as the work you did on this pull request.
Thank you very much for the initiative.
The work we did deviated a bit on scope and implementation and it is on review here #11428
For now, I'll add only the "system default" option and keep other fixes for later so it is easier to get this merged and it doesn't conflict with some refactor that is currently being implemented.
I would you like to quote you as a coauthor on my branch commits. Is it ok for you?
Thanks again.

@grliszas14 grliszas14 closed this Nov 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add a 'System default' option to playback device preference

5 participants