58 Commits

Author SHA1 Message Date
twinaphex
4d112da58d Silence some MSVC code analysis warnings 2022-03-07 19:02:46 +01: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
twinaphex
c522f97e0f Cleanups 2020-07-31 14:51:46 +02:00
twinaphex
0a1942f528 Turn fifo_read_avail and fifo_write_avail into macros 2020-07-07 08:13:32 +02:00
twinaphex
fa2a748631 (DSound) Create dsound_set_wavefmt 2020-01-05 17:16:55 +01:00
twinaphex
bdc866d6d5 (DSound/WASAPI) Cleanups 2020-01-05 17:08:50 +01:00
twinaphex
40a6c978ce (DSound) Optimize codepaths
(CoreAudio) Only iOS uses g_interrupted flag, put it behind ifdefs
2020-01-04 09:46:27 +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
19bdafc355 (DSound/Wasapi/XAudio2) CXX_BUILD fixes 2019-07-26 17:22:21 +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
16b65c6d61 (DirectSound) Simplify dsound_thread 2019-07-24 03:30:18 +02:00
twinaphex
bb9aa275b8 (DirectSound) Fix regression 2019-07-23 23:04:24 +02:00
twinaphex
c0fcf4ab17 (Dsound) Get rid of two inline functions 2019-07-21 13:31:33 +02:00
twinaphex
127bf556c7 Merge audio_driver.c into retroarch.c 2019-06-17 12:49:21 +02:00
orbea
bfc366decc Squeeze extra blank lines with cat(1).
Example:

find . -type f -iname '*.c' | while read -r i; do
  cat -s "$i" > "$i.new"
  mv "$i.new" "$i"
done
2019-01-08 11:04:58 -08:00
twinaphex
fd532414f0 (DSound) Add fallback when we are not building with HAVE_THREADS support 2018-08-16 10:57:33 +02:00
twinaphex
88d1e455e3 Add code that allows for debug D3D 2018-01-07 10:46:53 +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
edb70936ae Silence warning 2017-08-10 21:27:05 +02:00
twinaphex
805c2ad529 Buildfixes 2017-08-10 21:22:30 +02:00
twinaphex
b11620e1eb Add retro_timers.h/retro_math.h 2017-06-28 04:41:38 +02:00
twinaphex
3fb630c571 Get rid of is_perfcnt_enable for audio_driver_write function 2017-04-20 10:15:11 +02:00
twinaphex
e74853750b (audio driver) Pass is_perfcnt_enable boolean variable to audio
driver write function
2017-01-25 17:30:50 +01:00
twinaphex
90bc170829 Get rid of runloop_ctl calls inside audio drivers 2017-01-22 18:05:07 +01:00
twinaphex
96c8ca5a09 Header update #1 2017-01-22 13:40:32 +01:00
twinaphex
952f5e8d6e Remove some more configuration.h header includes 2017-01-13 16:39:43 +01:00
twinaphex
b20c9d870b Add block_frames member to audio driver init function;
be more prudent with strdup
2017-01-11 07:25:42 +01:00
twinaphex
83e8aec3d4 Refactor audio driver code - add new_rate variable 2017-01-09 13:09:14 +01:00
Brad Parker
f725b48555 starting to revert unicode changes 2016-12-03 00:15:29 -05:00
Brad Parker
3846ce1837 build fixes for MSVC, start moving back to TCHAR usage so we can switch unicode on and off 2016-12-02 12:54:39 -05:00
twinaphex
60cdd730b1 (audio/drivers) Cosmetic cleanups 2016-09-08 11:41:58 +02:00
sergiobenrocha2
7ba35a9929 Fix some spelling errors (pendantic info lintian warnings). 2016-07-20 23:28:29 -03:00
twinaphex
f4b40cd108 (Audio) Add device_list_new/device_list_free to audio drivers 2016-04-26 17:55:20 +02:00
twinaphex
ef4a1a3c0f (libretro-common) Rename fifo_buffer to fifo_queue 2016-03-20 14:06:21 +01:00
twinaphex
7a55ae3765 Start updating headers for 2016 2016-01-10 04:06:50 +01:00
twinaphex
ca5184f8df (Dsound) Buildfix 2015-11-23 20:26:02 +01:00
twinaphex
e0f0590269 Rearrange header includes 2015-11-23 19:40:09 +01:00
twinaphex
b434689d39 (Win32) Buildfixes 2015-11-23 12:14:53 +01:00
twinaphex
5465da0139 Rename rarch_sleep to retro_sleep 2015-09-22 18:55:14 +02:00
twinaphex
4ccbee5d8d Update headers 2015-09-14 03:44:06 +02:00
twinaphex
07de6af33e dsound.c - Include windows.h header too 2015-09-06 16:03:30 +02:00
twinaphex
120d4a00b2 (MSVC) Buildfix 2015-09-06 16:00:53 +02:00
Alcaro
3072f556f2 Buildfix - MinGW mmreg.h is buggy, work around that. 2015-09-06 15:47:43 +02:00
twinaphex
040cd0c438 dsound.c - buildfix 2015-09-06 15:40:31 +02:00
twinaphex
3067cfa602 (dsound.c) Only include mmreg.h if MSC_VER is not defined 2015-09-06 15:34:13 +02:00
Alcaro
fcbaca9b66 Fix a dozen CXX_BUILD errors under Windows. 2015-09-06 15:29:48 +02:00
twinaphex
12376cd611 dsound.c - Refactor grab_region 2015-09-06 15:23:30 +02:00
twinaphex
b2f022ae30 (Win32) Some build fixes 2015-09-05 14:01:40 +02:00