Commit Graph

62 Commits

Author SHA1 Message Date
sonninnos 07c371533f
WASAPI Frame Delay fix + cleanups (#15187) 2023-04-13 20:20:47 +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
sonninnos c737947d74 (WASAPI) Stop deactivating audio on fast forward 2021-08-11 04:21:52 +03:00
twinaphex 4c0d9bc68d Struct reordering/alignment 2020-08-14 21:19:32 +02:00
twinaphex 0a1942f528 Turn fifo_read_avail and fifo_write_avail into macros 2020-07-07 08:13:32 +02:00
twinaphex 85c672a0f6 Settings pointer cleanups 2020-02-19 20:57:02 +01:00
twinaphex bdc866d6d5 (DSound/WASAPI) Cleanups 2020-01-05 17:08:50 +01:00
twinaphex 688629d108 (WASAPI) Get rid of one unnecessary function 2020-01-04 09:09:04 +01:00
twinaphex 65e8b28d02 (WASAPI) Optimize -
- turn blocking variable into nonblocking in line with other audio drivers
- blocking codepath would do numerous conditional checks on
w->buffer, w->exclusive, w->blocking during a loop iteration - get rid
of this
2020-01-04 08:58:27 +01:00
twinaphex fa00cdba20 (Audio) Update 2020-01-03 21:54:09 +01:00
twinaphex d567b0ca25 (WASAPI) Split up write function - set up the write callback dynamically
based on whether exclusive and blocking is set to true or not
2020-01-03 13:56:45 +01:00
twinaphex 19bdafc355 (DSound/Wasapi/XAudio2) CXX_BUILD fixes 2019-07-26 17:22:21 +02:00
twinaphex 86728ddbf2 (WASAPI) Cleanup for audio device selection 2019-07-26 17:19:49 +02:00
twinaphex ce37405d29 (DirectSound) Add audio device selection - can set audio_device
either by name or by index
2019-07-26 02:36:41 +02:00
twinaphex d48ad5261e (WASAPI) Prevent potential leak 2019-07-25 15:51:53 +02:00
twinaphex e88f2819ca (WASAPI) Audio device can now be set either by name or by
device index
2019-07-25 15:50:48 +02:00
twinaphex 9df36f33d8 Move mmdevice macros out of mmdevice_common.h 2019-07-25 14:57:45 +02:00
twinaphex 95c5d22c5a Split up mmdevice enumeration string list to separate
file
2019-07-25 05:42:23 +02:00
twinaphex 6c10a198e9 (WASAPI) Cleanups(WASAPI) Cleanups(WASAPI) Cleanups(WASAPI)
Cleanups(WASAPI) Cleanups(WASAPI) Cleanups(WASAPI) Cleanups(WASAPI)
Cleanups(WASAPI) Cleanups
2019-07-25 03:45:33 +02:00
twinaphex b8875af0d1 (WASAPI) Cleanup all the runtime checks 2019-07-25 03:03:37 +02:00
twinaphex 127bf556c7 Merge audio_driver.c into retroarch.c 2019-06-17 12:49:21 +02:00
krzys-h 0cff7eefa7 Initialize COM only once, globally 2019-01-10 16:48:02 +01:00
Zoran Vuckovic 6def3b36a8 Fix issue #7861 2019-01-04 14:00:19 +01:00
Dwedit ff844a56c4 Modify MSVC 2017 project to add in WASAPI support
Add conditional code for MSVC to resolve missing GUIDs into wasapi.c
2018-11-17 09:23:12 -06:00
aliaspider 5db96f35fa (WIN32) various build fixes. 2018-01-20 20:05:32 +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
twinaphex 2a5bda2b14 C89_BUILD fix 2017-12-11 20:40:59 +01:00
twinaphex 0cbd2d4aa1 Cleanups 2017-09-28 21:51:03 +02:00
twinaphex 37ca5b0605 Cleanups 2017-09-28 21:49:23 +02:00
twinaphex be333837e9 Cleanup wasapi.c 2017-09-28 21:45:11 +02:00
twinaphex d9593c7cae (WASAPI) Cleanups 2017-09-28 19:07:53 +02:00
twinaphex 7d12eb4a51 (WASAPI) Compiles now as C++ as well as C 2017-09-28 18:47:33 +02:00
twinaphex 2af4457bec (WASAPI) Start adding C++ codepath too 2017-09-28 18:43:06 +02:00
twinaphex 6611ccf3fa C89_BUILD fixes 2017-08-12 17:42:52 +02:00
twinaphex 58233137b0 (WASAPI) Cleanups 2017-07-23 07:55:24 +01:00
Brad Parker fca0e52bdd win32: make includes lowercase to fix cross-compilation on linux 2017-06-13 22:25:47 -04:00
Zoran Vuckovic eebd7bbeea Change shared-mode settings 2017-05-24 16:25:36 +02:00
Zoran Vuckovic 171694804b Improve logging 2017-05-23 19:20:41 +02:00
Zoran Vuckovic 8ec72610d8 Remove unused variables 2017-05-22 19:57:05 +02:00
Zoran Vuckovic c045b80a5a Simplify latency and buffer length calculations 2017-05-22 18:47:48 +02:00
Zoran Vuckovic 554519457b Fix incorrect function arguments 2017-05-22 17:29:17 +02:00
Zoran Vuckovic 4cba63cdd0 Fix audio frame rate selection 2017-04-30 23:05:53 +02:00
Zoran Vuckovic f3a55f1036 Fix audio sync issue with fullscreen toggling 2017-04-28 22:58:06 +02:00
twinaphex aed6fd8082 (WASAPI) Buildfix 2017-04-28 22:17:44 +02:00
twinaphex 3e24672a43 Move bool settings 2017-04-28 12:23:59 +02:00
Zoran Vuckovic c5e56b1b25 Add workaround for "Pause when menu activated" option
Audio driver start function never gets called when this option is set to
off, so we start in init function for now. This solves one problem but
introduces new one, WASAPI engine starts running even there is no real
need for that.
2017-04-26 18:38:40 +02:00
Zoran Vuckovic 4a715e79e3 Code cleanup 2017-04-26 18:38:27 +02:00
Zoran Vuckovic 409a6136b8 Remove one redundant comment 2017-04-26 18:38:23 +02:00
Zoran Vuckovic f412095047 Add shared-mode buffer length option 2017-04-26 18:37:44 +02:00
Zoran Vuckovic a53645cc55 Fix device enumeration log message 2017-04-26 18:37:30 +02:00