Commit Graph

25 Commits

Author SHA1 Message Date
Henrik Rydgård a5fdf3d05b Add samplerate argument to NativeMix 2023-03-24 14:48:53 +01:00
Unknown W. Brackets 49f6c461ad Reporting: Fix some header includes.
Particularly in Common, avoid including Core/Reporting.h.
2022-12-27 14:58:20 -08:00
Unknown W. Brackets 9cfcbc46e6 Global: Cleanup initialization/pointer checks.
Cleaning up a lot of cases of uninitialized data, unchecked return values
for failures, and similar.
2022-12-10 21:13:36 -08:00
Unknown W. Brackets f44852bb18 Global: Cleanup virtual/override specifiers.
Also missing virtual destructors, hidden non-overrides, etc.
2022-12-10 21:13:36 -08:00
Unknown W. Brackets 1b5e5e2556 Windows: Improve reporting of WASAPI errors. 2022-10-15 21:23:49 -07:00
Unknown W. Brackets 2479d52202 Global: Reduce includes of common headers.
In many places, string, map, or Common.h were included but not needed.
2022-01-30 16:35:33 -08:00
Henrik Rydgård 15f3269338 Implement the option for auto audio devices switching for Windows too
(previously SDL-only)
2021-07-18 00:07:05 +02:00
Henrik Rydgård 828036f87b WASAPI: Survive switching to a mono device. Fixes #14591
It's a little flaky whether it tries to switch or not, but you can at
least use Windows' device selector to switch back and forth.

Should maybe also add an option to not follow the default device... Not
sure.
2021-07-10 01:22:34 +02:00
Henrik Rydgård f4a6d291e1 Common: Capitalize setCurrentThreadName(). 2021-04-30 23:02:36 -07:00
Unknown W. Brackets a1b9eb3cc5 Windows: Prevent some virtual dtor warnings. 2021-02-15 11:59:45 -08:00
Unknown W. Brackets da2e722794 Windows: Fix some format warnings. 2021-02-14 10:30:10 -08:00
Unknown W. Brackets 6247e4d0ee Windows: Add some missing override specifiers. 2021-02-14 10:30:10 -08:00
Henrik Rydgård 15382d5f94 Move threading utils from native to Common 2020-10-01 09:27:25 +02:00
Henrik Rydgård 5d64fc5ff1 Switch to PPSSPP's assert functions (don't use the system's) 2020-08-16 10:01:10 +02:00
sorgts 60d249a909 Fix Windows/CMake build with Visual Studio 2020-08-13 16:47:22 +02:00
Unknown W. Brackets 0f1f3507f6 Windows: Ask for a specific device on failure.
In case the new rules make things fail unexpectedly.
2020-05-22 00:19:59 -07:00
Unknown W. Brackets 9d1e31f6a0 Windows: Avoid WASAPI init for a bad format. 2020-05-21 23:39:29 -07:00
Unknown W. Brackets cd90fb4d69 Windows: Avoid crash for a mono output format.
Let's just assume we're only going to get stereo formats.
2020-05-21 23:37:27 -07:00
Unknown W. Brackets b3b86bc2c2 Windows: Add safety checks to WASAPI code.
Seems to be crashing for some users.
2020-05-08 00:55:21 -07:00
Henrik Rydgård cb463b569a WASAPI: Discovered by chance that pwstrDeviceId can be null. Treating it as a new device. 2019-10-11 14:29:02 +02:00
Henrik Rydgård 3bc3f3e969 WASAPI: Add some missing error checks. May help #12081? (but will result in silence) 2019-08-09 10:04:09 +02:00
Unknown W. Brackets c571924765 Windows: Support WASAPI default device switching.
No support for specifying a certain device.
2018-09-30 21:47:00 -07:00
Unknown W. Brackets ae5ff4bf71 Windows: Support non-extensible float in WASAPI.
The DualShock 4's headphone jack uses this, for example.
2018-09-30 20:29:44 -07:00
Henrik Rydgård f7c96651e6 Listen to WASAPI events 2018-09-30 20:29:44 -07:00
Henrik Rydgård f8ea364371 Cleanup: Split out the WASAPI code into its own file. 2018-09-30 20:29:39 -07:00