Henrik Rydgård
d97f42c225
WASAPI: Cache channel count to avoid unsafe pointer access from audio thread
...
Store format_->nChannels in atomic curChannels_ member to avoid
unsynchronized access to format_ pointer from the audio thread.
The format_ pointer can be freed/reallocated during Stop() while
the audio thread might still be reading it.
2026-08-04 00:37:55 +02:00
Henrik Rydgård
caf6d885e9
Fix a buffer allocation issue in the WASAPI backend, update comments.
...
Claude Sonnect helped spot this, but I'm unsure if it will actually fix #21711
2026-05-21 01:39:53 +02:00
Henrik Rydgård
f385a11b6f
WASAPI: If audioclient3 exists but fails init, fall back to audioclient.
2026-05-01 15:59:33 +02:00
Henrik Rydgård
2cc8e87389
WASAPI: Improve error handling and sysinfo display
2026-03-14 23:50:10 +01:00
Henrik Rydgård
b4664bf3f2
WASAPI: Improve the format checks to match the old implementation.
...
Will hopefully help a reported issue.
2026-03-07 18:59:03 +01:00
Henrik Rydgård
8445644920
Additional cleanup
2026-03-04 15:15:53 +01:00
Henrik Rydgård
b6a0e051aa
Minor fixes in WASAPIContext.cpp/h
2026-03-04 15:05:35 +01:00
Henrik Rydgård
2052ebc60c
Fix switching of audio devices on Windows.
...
Fixes #21337
2026-03-04 14:41:59 +01:00
Henrik Rydgård
892ef99daa
Misc cleanups and fixes
2026-03-04 14:41:59 +01:00
Henrik Rydgård
92b7f0dba1
WASAPI: Improve logging and error handling.
...
Hopefully will finally fix #20540
2025-07-11 13:53:27 +02:00
Henrik Rydgård
a00c857b4b
WASAPI: Try to ask the device for a stereo format if it has too many channels.
...
Also, add support for 16-bit audio (should be rare)
2025-07-11 09:41:08 +02:00
oltolm
11d8f85bf4
use ComPtr in WASAPIContext
2025-07-09 22:54:58 +02:00
oltolm
41e325475c
fix mingw64 build and Clang warnings
2025-06-22 12:30:13 +02:00
Henrik Rydgård
5d98e02d9b
Add more info about the output audio stream to System Information.
...
Plus another channel number fix
2025-06-19 01:20:16 +02:00
Henrik Rydgård
6271af52e9
Add the new low-latency WASAPI backend. Implement audio device selection on Windows
2025-06-16 22:40:13 +02:00
Henrik Rydgård
61d6c95f0c
More refactoring. Add the AudioBackend interface
2025-06-16 21:55:32 +02:00
Henrik Rydgård
990b74cc17
More audio refactoring
2025-06-16 18:48:53 +02:00