Commit Graph

61 Commits

Author SHA1 Message Date
libretroadmin e3a5c5ea46 (XAudio2) Don't make xa_use_float hardcoded anymore 2025-08-07 16:24:33 +02:00
libretroadmin e3435221d8 (OpenAL) Implement device_list_new/device_list_free 2025-08-04 07:49:26 +02:00
libretroadmin 86e65d10be (XAudio2) Buildfix, and implement non-mmdevice codepath for querying
the samplerate of the device
2025-08-04 06:49:16 +02:00
libretroadmin cb9ed749db (XAudio) Replicate behavior of WASAPI - selecting the audio
device will set the samplerate set by the OS as well
NOTE: There is still something wrong with the XAudio2 driver
and the 'devices' it enumerates and shows in the menu. It seems
the index is wrong, i.e. the entries seem swapped around. This
was an issue even before this commit. WASAPI seems to work correctly
2025-08-04 05:33:06 +02:00
libretroadmin 537712a634 (MMDevice) Changes:
* Add mmdevice_samplerate
* _WIN32_WINNT checks will fail on modern MSYS2/MIngw-w64 setups (Win10/11) -
_WINN32_WINNT will be 0x0601 (1537) - i.e. Win7 and up. We can assume MMDevice
is available since Vista, so lower these checks to Vista and up
2025-08-03 22:07:33 +02:00
libretroadmin 51cc74d0e0 (Xaudio2) Move the set wave format up earlier before CreateMasteringVoice,
override the 'sampling rate' variable, and set the new sampling rate in
case it gest overwritten by a new value. Next step will be to query the
OS device's default sampling rate and use that
2025-08-03 02:42:19 +02:00
libretroadmin f8e35e5f11 (DirectSound) Some refactors 2025-08-02 19:25:46 +02:00
libretroadmin a3754306c9 (WASAPI) Unique namespacing of functions
(XAudio2) More logging
2025-08-02 18:41:13 +02:00
libretroadmin 84b07468f3 (Xaudio2) Refinement of initialization code - add some logs and make it more
like WASAPI
2025-08-02 18:09:46 +02:00
libretroadmin e7944cc1a8 (XAudio) xa_write - return what is being written 2025-08-02 16:35:15 +02:00
libretroadmin a485bf7f16 Namespace cleanups and style nits 2025-08-02 15:00:43 +02:00
LibretroAdmin c9931cd936
Merge microphone drivers (#18103)
* Merge microphone drivers

* Some buildfixes

* * Merge audio/common/wasapi.c into audio/drivers/wassapi.c
* Buildfix for alsa/drivers/alsathread.c

* Merge more files

* Attempted buildfix

* Try to use enum values instead of eRender/eCapture

* Simplification of mmdevice_name
2025-07-18 15:47:31 +02:00
sonninnos b2ca569521 Logging unification cleanups 2025-07-10 05:59:06 +03:00
LibretroAdmin c57c4fbd1a Style nits 2025-02-10 13:59:25 +01:00
LibretroAdmin 4020326f58 Style nits 2025-01-20 04:37:27 +01:00
LibretroAdmin cde82f532c * Naming convention changes for variable names/function arguments
* Try to fit lines within ANSI 80-char limit
2025-01-19 20:19:14 +01:00
Jesse Talavera-Greenberg 3599b3e675 Fix a compiler error
- A use of mmdevice_list_new was not updated to reflect its changed signature
2023-06-18 08:38:53 +02:00
libretroadmin 88cd91c586 Cleanup some xaudio headers 2023-03-13 04:12:18 +01:00
LibretroAdmin d5a6c4f150 (content) use flags for content_state
(xaudio2) Use flags
2022-10-09 10:20:43 +02:00
Autechre e7f182811a
Split up audio code into new file audio/audio_driver.c (#13097)
* Split up audio code into new file audio/audio_driver.c

* Fix build issues #1

* Small cleanup

* Fix typo
2021-10-11 18:01:37 +02:00
Tony 49bd8d2d27
(XAudio+DSound) Fail instead of crash (#12527) 2021-06-16 15:35:20 +02:00
IAmBoring 88a1379053
XAudio2 threaded creation
COM initialization
2021-01-05 16:10:11 +00:00
twinaphex 6c067d149d (Xaudio) Cleanups 2020-10-03 20:35:50 +02:00
twinaphex 4c0d9bc68d Struct reordering/alignment 2020-08-14 21:19:32 +02:00
twinaphex c522f97e0f Cleanups 2020-07-31 14:51:46 +02:00
twinaphex 4a9e1e6c7e Revert "Backport"
This reverts commit 685db05032.
2020-05-11 03:49:27 +02:00
twinaphex 685db05032 Backport
66876fe858
- handles insertion/removal of audio devices for Xaudio2 - hopefully a
callback based approach can be done later
2020-05-11 03:29:01 +02:00
twinaphex d3bc82d2c3 Header cleanups 2020-03-05 14:12:20 +01:00
twinaphex fa00cdba20 (Audio) Update 2020-01-03 21:54:09 +01:00
twinaphex 6e6fbc5ad3 (Dsound) Split up dsound_write
(XAudio) Optimize xa_write_nonblock
2020-01-03 14:19:31 +01:00
twinaphex 41e32ea949 (XAudio) If xa->nonblock is true - point write callback to
specialized version of the function
2020-01-02 20:33:21 +01:00
twinaphex 8a4d3f7431 (XAudio 2.8) Audio device selection can now be set 2019-07-26 20:46:11 +02:00
twinaphex 19bdafc355 (DSound/Wasapi/XAudio2) CXX_BUILD fixes 2019-07-26 17:22:21 +02:00
twinaphex b5d11db53b (XAudio2) Device index selection now works for old
pre-XAudio 2.8 codepath
2019-07-26 17:16:24 +02:00
twinaphex 6b73acee4e (UWP) Buildfix 2019-07-26 04:00:49 +02:00
twinaphex aa023729d0 (XAudio2) Start adding device list new/free 2019-07-26 03:39:46 +02:00
twinaphex 6da7a0c19a Revert "(Xaudio2) Fix audio device index - since Windows 8, device index"
This reverts commit aeb10505c4.
2019-07-24 05:34:58 +02:00
twinaphex aeb10505c4 (Xaudio2) Fix audio device index - since Windows 8, device index
for CreateMasteringVoice is of type LPCWSTR instead of UINT32
2019-07-24 04:10:06 +02:00
twinaphex f3eb48d1f5 Fix MSVC warnings 2019-07-22 20:16:27 +02:00
twinaphex 727d0a1683 (Xaudio2) Optimize xa_write 2019-07-21 15:49:59 +02:00
twinaphex 127bf556c7 Merge audio_driver.c into retroarch.c 2019-06-17 12:49:21 +02:00
twinaphex a6998d593a Update some logs 2019-04-28 05:48:09 +02:00
Huw Pascoe fed06044c4 silence warnings 2019-04-12 17:32:11 +01:00
krzys-h 0cff7eefa7 Initialize COM only once, globally 2019-01-10 16:48:02 +01:00
twinaphex ff1ca99748 (MSVC 2017 UWP) Buildfix
(MSVC 2017 UWP) Renaming
2019-01-02 07:27:47 +01:00
krzys-h 9c75b9cb7f Add missing CoUninitialize calls, fix COM initialization problems
It turns out, some of the CoInitialize calls were failing because they
specified conflicting threading models
2019-01-01 17:30:43 +01:00
krzys-h cc686ba9bc Upgrade XAudio2 headers
XAudio 2.7 was part of the old DirectX SDKs. XAudio 2.8+ is part of the
Windows OS itself (starting from Windows 8). Since UWP lets you access
only libraries that are built-in to the OS, the headers had to be
upgraded to the newer version to get audio support working.
2018-12-28 22:09:30 +01:00
aliaspider 5549b136c2 (msvc) CXX_BUILD + griffin fixes. 2018-02-05 00:25:03 +01:00
twinaphex 7321c6c87a (xaudio) Cleanups 2017-12-25 08:11:10 +01:00
gblues 6904101c44 Clean up trailing whitespace
== DETAILS

Really simple code cleanup, because my editor flags trailing whitespaces
and it's pretty annoying.
2017-12-12 00:24:18 -08:00