Commit Graph

38 Commits

Author SHA1 Message Date
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
Oschowa
8058735cdb (Audio/ALSA) Fill hw_params configuration space before trying to detect
float format.
Otherwire detection will always fail.
2020-11-06 23:09:42 +01:00
twinaphex
13604b047f (Audio) reorder structs/alignment (don't touch Switch audio drivers
for now)
2020-08-26 15:24:33 +02:00
twinaphex
1d6f547e7f (Audio) Cleanups 2020-01-04 10:39:33 +01:00
twinaphex
127bf556c7 Merge audio_driver.c into retroarch.c 2019-06-17 12:49:21 +02:00
Hans-Kristian Arntzen
b3e2df53d2 Avoid menu deadlocks in Pulse and ALSA. (#8265)
Buggy menu code most likely, but audio backends can be defensive about
it.
2019-02-12 09:31:09 -05:00
twinaphex
61ff51be2f Start using string_is_equal predominantly 2018-01-16 22:53:38 +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
126a5bf121 Use string_is_equal_fast/string_is_not_equal_fast 2017-05-16 04:00:37 +02:00
twinaphex
6ebd4e139e Rewrite more string_is_equal call invocations as memcmp 2017-04-22 08:51:16 +02:00
twinaphex
120cf21505 Rewrite alsa_write pt. 2 2017-04-21 13:27:46 +02:00
twinaphex
74431917a2 Rewrite alsa_write 2017-04-21 12:21:38 +02:00
twinaphex
75e02c4646 Simplify alsa_write 2017-04-20 18:27:46 +02:00
twinaphex
d8ba05170f (ALSA) Use macro for frames to bytes 2017-04-20 13:31:02 +02:00
twinaphex
9faae7eb3f (ALSA) Use macro for determing frames from bytes instead of snd_pcm_bytes_to_frames 2017-04-20 11:20:34 +02:00
twinaphex
3fb630c571 Get rid of is_perfcnt_enable for audio_driver_write function 2017-04-20 10:15:11 +02:00
twinaphex
1b27c3dec1 Make some log messages more consistent 2017-03-24 00:28:21 +01:00
twinaphex
74b2fde05a (ALSA) Use non-near version of set_channels - we don't yet support
anything other than stereo
2017-01-28 16:00:57 +01:00
twinaphex
4a5688ffe7 (ALSA) Use near versions of set_rate and set_channels - ALSA
can now set a different sampling rate if the suggested rate is
not available - should make PS4 gamepad audio work
2017-01-28 15:59:36 +01:00
twinaphex
8d863bde3d (ALSA) Call snd_pcm_hw_params_set_rate_resample 2017-01-26 04:42:56 +01: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
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
twinaphex
8fa011d836 Get rid of some header includes 2017-01-09 12:50:54 +01:00
twinaphex
51b0e61712 Cleanups 2016-09-11 16:24:02 +02:00
twinaphex
60cdd730b1 (audio/drivers) Cosmetic cleanups 2016-09-08 11:41:58 +02:00
twinaphex
ba7d638b99 Use string_is_equal 2016-08-29 18:46:41 +02:00
sergiobenrocha2
7ba35a9929 Fix some spelling errors (pendantic info lintian warnings). 2016-07-20 23:28:29 -03:00
twinaphex
4981cc65c9 Try to call snd_config_update_free_global after every call to
snd_pcm_close to prevent apparent memory leaks
2016-05-26 07:19:54 +02:00
gouchi
56180af727 add audio hdmi output 2016-05-02 12:11:47 +02:00
twinaphex
f4b40cd108 (Audio) Add device_list_new/device_list_free to audio drivers 2016-04-26 17:55:20 +02:00
twinaphex
e0f0590269 Rearrange header includes 2015-11-23 19:40:09 +01:00
twinaphex
074f14b132 Add verbosity.c/verbosity.h 2015-11-23 12:03:38 +01:00
twinaphex
4ccbee5d8d Update headers 2015-09-14 03:44:06 +02:00
twinaphex
d92a24377d (ALSA) Don't use messy TRY_ALSA macro 2015-08-30 10:05:13 +02:00
twinaphex
1753430d68 MOve audio drivers to audio/drivers 2015-01-12 05:05:56 +01:00