Cameron Cawley
0cca71a846
Use SDLCALL for callbacks in public APIs
2022-05-18 15:01:27 -07:00
Sam Lantinga
120c76c84b
Updated copyright for 2022
2022-01-03 09:40:21 -08:00
Ozkan Sezer
5c067906ba
wasapi: AvSetMmThreadCharacteristicsW takes an LPCWSTR param, not LPWSTR
2021-11-15 00:55:04 +03:00
Ethan Lee
67e8522d31
Add SDL_GetAudioDeviceSpec.
...
This API is supported by pipewire, pulseaudio, coreaudio, wasapi, and disk.
2021-03-05 12:03:07 -08:00
Ozkan Sezer
265a1cc97a
use WIN_StringToUTF8W instead of WIN_StringToUTF8 where needed ( #2 )
...
cf. bug #5435 .
- SDL_wasapi_win32.c (GetWasapiDeviceName): pwszVal is WCHAR*
- windows/SDL_sysfilesystem.c (SDL_GetBasePath, SDL_GetPrefPath)
- windows/SDL_sysurl.c (SDL_SYS_OpenURL): wurl is WCHAR*
- SDL_windowssensor.c (ConnectSensor): bstr_name is WCHAR*
- windows/SDL_systhread.c (SDL_SYS_SetupThread): strw is WCHAR*
2021-01-05 15:50:02 +03:00
Ozkan Sezer
ed39f2f3f9
SDL_wasapi_win32.c (WASAPI_PlatformThreadInit): use L instead of TEXT()
...
because AvSetMmThreadCharacteristicsW specifically accepts WCHAR* input
cf. bug #5435 .
2021-01-04 01:23:50 +03:00
Ozkan Sezer
01a2f27679
consistently use TEXT() macro with LoadLibrary() and GetModuleHandle()
...
cf. bug #5435 .
2021-01-04 01:23:50 +03:00
Sam Lantinga
9130f7c377
Updated copyright for 2021
2021-01-02 10:25:38 -08:00
Sam Lantinga
cb36189692
Fixed bug 5235 - All internal sources should include SDL_assert.h
...
Ryan C. Gordon
We should really stick this in SDL_internal.h or something so it's always available.
2020-12-09 07:16:22 -08:00
Ryan C. Gordon
68777406e5
windows: Fix calls to CoCreateInstance() so last parameter is a LPVOID *.
2020-05-20 16:58:33 -04:00
Sam Lantinga
b6afbe6317
Added SDL_log.h to SDL_internal.h so logging is available everywhere
2020-04-07 09:38:57 -07:00
Sam Lantinga
a8780c6a28
Updated copyright date for 2020
2020-01-16 20:49:25 -08:00
Sam Lantinga
5e13087b0f
Updated copyright for 2019
2019-01-04 22:01:14 -08:00
Ryan C. Gordon
4a50a04213
wasapi/win32: Sort initial device lists by device GUID.
...
This makes an unchanged set of hardware always report devices in the same
order on each run.
2018-10-21 22:40:17 -04:00
Ethan Lee
7f9854b9b2
WinRT: Wait until audio device activation is complete and PrepDevice during OpenAudio
2018-09-25 01:45:12 -04:00
Ryan C. Gordon
7e1fa0ce53
wasapi: fixed typo in an assert message.
2018-02-21 21:34:35 -05:00
sezero
40b27fd51b
revert the recent typecast assignment changes (see bug #4079 )
...
also change the void* typedefs for the two vulkan function
pointers added in vulkan_internal.h into generic function
pointer typedefs.
2018-02-12 17:00:00 +03:00
Sam Lantinga
90e72bf4e2
Fixed ISO C99 compatibility
...
SDL now builds with gcc 7.2 with the following command line options:
-Wall -pedantic-errors -Wno-deprecated-declarations -Wno-overlength-strings --std=c99
2018-01-30 18:08:34 -08:00
Ryan C. Gordon
488824017a
wasapi: Fixed some compiler warnings.
2018-01-22 09:36:40 -05:00
Sam Lantinga
e3cc5b2c6b
Updated copyright for 2018
2018-01-03 10:03:25 -08:00
Ryan C. Gordon
351d6d4784
audio: Port WASAPI to WinRT, remove XAudio2 backend.
...
XAudio2 doesn't have capture support, so WASAPI was to replace it; the holdout
was WinRT, which still needed it as its primary audio target until the WASAPI
code code be made to work.
The support matrix now looks like:
WinXP: directsound by default, winmm as a fallback for buggy drivers.
Vista+: WASAPI (directsound and winmm as fallbacks for debugging).
WinRT: WASAPI
2017-12-06 12:24:32 -05:00