Skip to content

Take over a device volume change on the UI thread - #144

Merged
G-Stas merged 1 commit into
mainfrom
fix/master-session-threads
Nov 10, 2026
Merged

G-Stas merged 1 commit into
mainfrom
fix/master-session-threads

Conversation

@G-Stas

@G-Stas G-Stas commented Nov 10, 2026

Copy link
Copy Markdown
Owner

Windows reports a device's volume and mute changes on a COM thread when the device was built off the UI thread. The master model wrote its state and raised PropertyChanged there, racing with the hotkeys and the slider on the UI thread, and the level meters started and stopped their DispatcherTimer from that thread when the mute state changed. The change is now posted to the UI thread and dropped once the model is disposed.

Windows reports a device's volume and mute changes on a COM thread when the
device was built off the UI thread. The master model wrote its state and raised
PropertyChanged there, racing with the hotkeys and the slider on the UI thread,
and the level meters started and stopped their DispatcherTimer from that thread
when the mute state changed. The change is now posted to the UI thread and
dropped once the model is disposed.
@G-Stas
G-Stas merged commit 868c5d1 into main Nov 10, 2026
@G-Stas
G-Stas deleted the fix/master-session-threads branch November 12, 2026 17:12
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.

1 participant