Commit Graph

391 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
twinaphex 127bf556c7 Merge audio_driver.c into retroarch.c 2019-06-17 12:49:21 +02:00
twinaphex 8ff9e7254d (audio_driver.c) Cleanups 2019-05-29 14:26:14 +02:00
Brad Parker 10df615d14 add "Send Debug Info" option under Help 2019-03-07 19:17:54 -05:00
twinaphex 829aedc6e2 (Video/Audio) Remove 'own driver' mechanism 2019-02-27 17:09:15 +01:00
twinaphex a51acb8377 Buildfix 2019-02-12 04:03:10 +01:00
twinaphex 660d0c8de9 Remove mutexes - should hopefully fix dolphin/reicast threaded
again
2019-02-12 03:55:08 +01:00
twinaphex 386657a366 (menu widgets backport) Re-commit task queue changes 2019-02-08 08:00:32 +01:00
twinaphex 7022786f34 Revert parts of menu_widgets that were causing breakage, but leave
all the hooks in so we can add them back piece by piece again
2019-02-08 07:26:43 +01:00
natinusala c20ab3864d First version of menu widgets (gl only) 2019-02-06 20:48:24 +01:00
Twinaphex 7fedabee4b
Merge pull request #8163 from orbea/cleanup
Cleanup
2019-02-04 23:19:05 +01:00
twinaphex ebce936557 Fix UWP builds 2019-02-04 23:14:20 +01:00
orbea 28ff4b391a Clean up white space. 2019-02-03 16:00:50 -08:00
twinaphex 6aca340927 (OSX) Add CoreAudio V3 driver from stuartcarnie 2019-01-31 23:14:56 +01:00
twinaphex 9421584772 Header include updates 2019-01-31 19:41:51 +01:00
twinaphex 000646e51e Update header includes 2019-01-31 19:06:27 +01:00
twinaphex 1c9cabf249 Add HAVE_THREADS ifdefs 2019-01-28 13:04:20 +01:00
twinaphex 23463408d5 Use some macros here to avoid function call overhead 2019-01-28 08:23:20 +01:00
Brad Parker 90db5e7e27 Implement in-menu sound effects 2019-01-27 11:22:16 -05:00
twinaphex fc57b41ab6 (Audio mixer) You can now specifically set a slot to load a sound in
- set type to AUDIO_MIXER_SLOT_SELECTION_MANUAL and set idx to the
slot you want to load in (begins at 0)
2019-01-18 00:24:31 +01:00
twinaphex 65d5de6674 Add 4 additional mixer slots for system sound effects and music
for menu
2019-01-17 03:03:46 +01:00
twinaphex b9ff2e4de1 Fix some static code analysis warnings from MSVC 2017 2019-01-10 21:47:15 +01:00
Twinaphex 40997473ed
Merge branch 'master' into orbis2 2019-01-08 20:18:08 +01: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
Francisco Javier Trujillo Mata 1591bc2db2 Create Audio Driver from PS2 2019-01-03 13:16:27 +01:00
Francisco José García García a1e455d197 [ORBIS] Initial audio driver 2018-12-31 00:37:08 +01:00
nia 3ef9bbb592 Add an AudioIO dirver for NetBSD and Solaris. 2018-12-21 14:15:30 +00:00
twinaphex 726de8e447 Apply diff to fix #6382 2018-10-21 05:40:50 +02:00
twinaphex 50eb4adc4b (libnx) Use audio_switch_thread by default 2018-10-06 17:35:52 +02:00
misson20000 7072bbb829 [NSW] SDK compat fixups 2018-09-15 03:27:29 -07:00
twinaphex 2a7a2e7dee (LIBNX) Start backporting libnx code; beginning with audio drivers 2018-09-12 08:14:17 +02:00
Tatsuya79 e48b9011bf Don't adjust audio for VRR. Silence log message about it. 2018-08-09 12:29:40 +02:00
twinaphex 7bc66ae710 Buildfixes for MSVC 2015 2018-05-03 15:20:06 +02:00
twinaphex ea77fbbd38 Increase max streams from 8 to 16 2018-05-02 23:42:39 +02:00
twinaphex ab360ae3ac (Audio mixer) Add Sequential playback mode 2018-05-02 21:43:16 +02:00
twinaphex 0d36993ceb Remove name when sound is done 2018-05-02 21:02:45 +02:00
twinaphex 68a2f18bfb Cleanups 2018-05-02 20:52:06 +02:00
twinaphex 5e32f7ab40 Add To Mixer and Add To Mixer And Play actions 2018-05-02 20:39:55 +02:00
twinaphex 9fbfd503af Add value descriptions for audio mixer streams 2018-05-02 20:13:13 +02:00
twinaphex 5aeab54ab7 (Audio mixer) Ability to individually set volume per stream 2018-04-30 17:51:01 +02:00
twinaphex 01e85b321b Improve audio_driver_menu_sample 2018-04-30 15:44:12 +02:00
twinaphex 49341bac26 Add Play/Play (Looped) actions 2018-04-30 15:04:29 +02:00
twinaphex 965859ddcb Start adding mixer controls - ability to stop and remove loaded tracks 2018-04-30 14:34:25 +02:00
twinaphex b0ef193117 Add 'Enable menu audio' setting 2018-04-29 00:41:53 +02:00
twinaphex 773fc1ebad Create audio_driver_menu_sample 2018-04-29 00:06:54 +02:00
twinaphex b6df41d808 (audio_driver.c) Cleanups 2018-04-28 20:06:07 +02:00
twinaphex e7272ddefa (Audio mixer) Add MP3 support as well 2018-04-28 14:18:04 +02:00
twinaphex faa99bd323 Start adding FLAC hooks 2018-04-27 23:45:06 +02:00
Twinaphex 08a54e45f2 Get rid of a lot of implicit conversions 2018-04-09 15:56:45 +02:00
twinaphex e4b955d4d4 Fix sample count reporting 2018-03-24 16:29:39 +01:00
twinaphex 875450e228 Statistics - add sample count 2018-03-24 15:42:45 +01:00
twinaphex 1fb7d14b36 Add audio statistics 2018-03-24 12:38:25 +01:00
twinaphex 9343eacc0a Create public function compute_audio_buffer_statistics 2018-03-24 12:25:52 +01:00
Dwedit 3297900543 Add the early return to audio_driver_sample_batch 2018-03-23 17:22:00 -05:00
Dwedit 575265ff06 Remove early return from audio_driver_flush 2018-03-23 14:46:32 -05:00
Dwedit 7deeb6d2fa Functions to enable and disable audio and video, and an environment function to query status of audio and video enables 2018-03-23 14:12:05 -05:00
twinaphex 9c305f7e95 Update 2018-02-03 12:22:08 +01:00
twinaphex 535012f8bf Put compute_audio_buffer_statistics behind ifdef DEBUG 2018-02-02 21:57:58 +01:00
twinaphex 7ab992e858 Add missing null pointer check 2018-01-29 23:01:58 +01:00
twinaphex 11f26ed549 Refactor verbosity code - try to avoid log calls if verbosity is not
set
2018-01-17 06:28:26 +01:00
twinaphex 8860619a5e Add audio_resampler_quality to config file 2017-12-31 21:25:07 +01:00
twinaphex b9248cf3af Start preparing runtime toggleable resampler quality settings 2017-12-31 20:55:26 +01:00
twinaphex 7e61f08cdb Simplify audio_driver_flush 2017-12-30 14:14:30 +01:00
misson20000 033a7259b4 audio driver for the switch 2017-12-29 00:10:01 +01:00
Alcaro a7be0520b5 Define replaced 2017-12-28 04:24:33 +01:00
Alcaro b933a8796b Let's not pretend to calculate deviation if we don't actually do that 2017-12-28 03:05:42 +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 721afe22d8 (MSVC 2010) Compile griffin.c as C 2017-10-02 22:06:32 +02:00
twinaphex 12957e461d Reduce more stack usage for offending functions 2017-09-09 05:26:14 +02:00
twinaphex 8654f124d1 Cleanup of audio_driver_dsp_filter_init - reduce stack usage 2017-09-09 04:56:13 +02:00
twinaphex c0207e9b56 Revert "Reduce size of variables"
This reverts commit 79f1166c6e.
2017-09-09 00:20:39 +02:00
twinaphex 79f1166c6e Reduce size of variables 2017-09-08 23:44:10 +02:00
twinaphex c3bb76a05e Try to reduce variable sizes 2017-09-08 05:58:48 +02:00
Brad Parker 0a1b3fedc0 VC6 support (targets NT 3.51) 2017-09-06 23:03:02 -04:00
Romain Tisserand cbe2d9a941 Preliminary MOD/S3M/XM support through ibmx library (part of micromod repository) 2017-08-04 15:05:29 +02:00
twinaphex 33c96bf6f2 This crashes 2017-06-24 22:09:18 +02:00
Charlton Head 4ad5f67663 TinyALSA support 2017-06-23 20:44:00 -05:00
twinaphex 80e2911bec Cleanups 2017-06-11 00:23:19 +02:00
twinaphex 34c1c5a361 Try to guard against value being -1 2017-06-09 12:15:26 +02:00
twinaphex cdf7a403ea Add audio mixer mute enable 2017-06-08 23:53:24 +02:00
twinaphex 8f5f3d15f3 Add AUDIO_ACTION_MIXER_VOLUME_GAIN 2017-06-08 22:38:54 +02:00
twinaphex 5812471350 Need to apply db_to_gain to convert decibel to gain 2017-06-08 22:32:03 +02:00
twinaphex 420d0d0607 Get rid of audio_driver_set_volume_gain 2017-06-08 22:24:51 +02:00
twinaphex 65633c93f3 Audio mute now applies audio gain of 0.00 - no longer stops/starts
audio driver on mute toggle - should no longer unblock on audio
now if we set audio mute
2017-06-08 22:09:04 +02:00
twinaphex cd3276c554 Add volume override for audio_mixer_mix 2017-06-08 22:03:11 +02:00
Twinaphex e2be9e659d Silence some warnings 2017-06-08 02:44:38 +02:00
twinaphex b13dc7415c (audio_driver.c) Audio mixer - Plug another memory leak 2017-05-31 01:23:20 +02:00
twinaphex 1af6d8a59f Add audio_mixer_find_index - and attempt to plug memleaks 2017-05-30 22:34:18 +02:00
twinaphex fd64b158ac Add audio_mixer_play_stop_cb initial impl. 2017-05-30 06:29:19 +02:00
twinaphex 70d906c176 (audio mixer) Add default stop_cb which decrements audio mixer idx value 2017-05-30 06:03:36 +02:00
twinaphex a379b71d42 Change string_is_equal to string_is_equal_noncase 2017-05-27 21:18:45 +02:00
twinaphex 4c1dc265bc Put ifdef around this 2017-05-27 21:18:23 +02:00
twinaphex 5851d103d0 Add 'Add to Mixer' option for Ogg/WAV files inside the music tab 2017-05-27 21:03:17 +02:00
twinaphex b2b4cc667c Fix memory leaks 2017-05-22 00:27:41 +02:00
twinaphex 73cc655de7 Cleanups 2017-05-21 18:05:21 +02:00
twinaphex fd3025ff40 Memcpy the data 2017-05-21 18:04:58 +02:00
twinaphex c6aba1af2f Cleanups 2017-05-19 06:17:20 +02:00
twinaphex d7ed925488 Cleanups 2017-05-18 13:40:47 +02:00
twinaphex 838c1eb93a Prevent leaks 2017-05-18 09:17:30 +02:00
twinaphex 82d37d2036 Don't loop audio files by default 2017-05-18 07:27:41 +02:00