Commit Graph

1702 Commits

Author SHA1 Message Date
sonninnos b00ae41e41 Logging format unifications 2025-08-10 15:18:42 +03:00
Eric Warmenhoven e6514de3a7
(audio) minor follow up fix to 3aa8db2.
Fixes #18164
2025-08-09 11:58:02 -04:00
Eric Warmenhoven 282308d800
macos: fix coreaudio mic default device 2025-08-07 22:51:03 -04:00
Eric Warmenhoven 9728e5914d
Merge remote-tracking branch 'libretro/master' into warmenhoven/dev/macOS-Core-Audio-Mic-Fix 2025-08-07 18:04:21 -04:00
libretroadmin 3aa8db2c08 (Audio) SOme control flow changes (no functional changes) and some cleanups 2025-08-07 17:35:00 +02:00
libretroadmin e3a5c5ea46 (XAudio2) Don't make xa_use_float hardcoded anymore 2025-08-07 16:24:33 +02:00
libretroadmin 7736095525 Update for CXX_BUILD 2025-08-06 04:44:32 +02:00
libretroadmin 151d49311d Some CXX_BUILD buildfixes 2025-08-06 00:12:21 +02:00
libretroadmin 6efdb108ae Naming convention standardizations 2025-08-05 22:54:18 +02:00
libretroadmin 83c3e589e5 Fix OpenAL logs 2025-08-05 19:45:55 +02:00
libretroadmin 27f27c351f Turn C++ comments to C comments 2025-08-05 19:14:03 +02:00
libretroadmin 1d4f663506 Silence code analysis warnings 2025-08-05 17:32:30 +02:00
libretroadmin a39ed1a822 (SDL_audio) Add missing header include 2025-08-05 07:27:36 +02:00
libretroadmin d59adf7643 (SDL_Audio) Add device_list_new/device_list_free 2025-08-05 07:09:22 +02:00
libretroadmin 5477ad32f6 (OpenAL) You're able to select the audio device now from the menu
and for it to be set on the fly
2025-08-05 04:49:55 +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 1cb78161a6 (WASAPI/MMDevice) Move MMDevice specific code over to mmdevice_common.c 2025-08-03 16:34:35 +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 ecbc05de6b (Audio drivers) Some cleanups 2025-08-02 21:18:50 +02:00
libretroadmin a018f54559 (DirectSound) Set DirectSound back to signed 16bit integer 2025-08-02 19:27:12 +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 24eb75dda0 (audio) Audio chunk sizes in this file seem to be only used for
cores that implement non-batch audio callback
2025-08-02 15:22:43 +02:00
libretroadmin d89988f7d7 (GX) Move audio chunk size defines to gx_audio.c 2025-08-02 15:07:49 +02:00
libretroadmin a485bf7f16 Namespace cleanups and style nits 2025-08-02 15:00:43 +02:00
libretroadmin 63a146f0ea (Pipewire) Namespace all static globals and functions with 'pwire_' 2025-08-02 14:23:15 +02:00
libretroadmin 3e29213d5e (WASAPI) Fix mistake 2025-08-02 07:58:44 +02:00
libretroadmin 88e0a0e8ca return variable name consistency 2025-08-01 19:52:38 +02:00
libretroadmin 9567f3cbd9 (audioio) Add TODO/FIXME 2025-08-01 19:50:26 +02:00
libretroadmin ab47260fca (Audio) write functions - return variable name consistency 2025-08-01 19:48:34 +02:00
libretroadmin 34bc60e6d4 (openAL) More correct way of removing tmpbuf 2025-08-01 17:32:09 +02:00
libretroadmin 77185a734d (OpenAL) Unroll al_fill_internal_buf into al_write 2025-08-01 16:52:04 +02:00
libretroadmin dc2bf1226e (SDL_Audio) Make (reasonable) assumption that AUDIO_F32SYS (float)
is unavailable for SDL1
2025-08-01 16:25:51 +02:00
libretroadmin 4bcf5dd1a2 (SDL) Buildfix 2025-08-01 16:17:53 +02:00
libretroadmin 0f510fad39 Revert "(OpenAL) Don't need to copy into intermediary buffer anymore (tmpbuf)"
This reverts commit ab7a3e9ffa.
2025-08-01 16:16:54 +02:00
libretroadmin c6622f5f0a (OpenAL) Changes: don't need has_float variable anymore 2025-08-01 14:23:00 +02:00
libretroadmin 5d43932aee (SDL_Audio) Changes:
* Clean up some log messages
* More robust implementation of float/s16 buffer size determination
2025-08-01 14:20:52 +02:00
libretroadmin 5fec502174 (SDL_Audio) Changes:
* Put back log messages but this time implement them properly, we first
show the requested spec, then show the received spec afterwards
* Implement floating point sample support, should be more optimal
2025-08-01 14:16:18 +02:00
libretroadmin 80f2d91ef3 (SDL_Audio) Changes:
* sdl_microphone_find_num_frames - duplicate function
* Duplicate log message
2025-08-01 14:02:18 +02:00
libretroadmin ab7a3e9ffa (OpenAL) Don't need to copy into intermediary buffer anymore (tmpbuf) 2025-08-01 12:42:55 +02:00
libretroadmin ef69296be3 Rewrite al_fill_internal_buf - only call memcpy if 3rd argument
is non-0
2025-08-01 04:59:58 +02:00
libretroadmin 318e3ca9c1 (OpenAL) Bugfix: sizeof should be float for float sample format 2025-08-01 03:41:18 +02:00
libretroadmin 4d76e042ad (OpenAL) Implement float sample format support - query support with
alIsExtensionPresent("AL_EXT_FLOAT32")
2025-08-01 02:41:48 +02:00
libretroadmin 1e2500f736 (openAL) Changes:
* Don't use alGetError anymore in hot loop
* Turn off looping (doesn't seem to be needed?)
* Some loop optimization
2025-08-01 00:25:54 +02:00
libretroadmin 8f4990e835 (WASAPI) Changes/style nits:
* Value that gets returned gets called _len
* Less calls to macro FIFO_WRITE_AVAIL
2025-07-31 19:17:33 +02:00