Commit Graph

884 Commits

Author SHA1 Message Date
twinaphex
c0a1a6a3fe Move system->shutdown to runloop_ctl, turn it into a local
static variable
2015-12-04 12:44:12 +01:00
twinaphex
be971fc258 Backport/rewrites wmarquesr pt. 3 2015-12-04 10:38:51 +01:00
twinaphex
8e0fcc663b (audio_driver.c) Turn some variables into static local variables 2015-12-04 02:16:17 +01:00
twinaphex
0e15c30964 (audio_driver.c) Put some more safeguards in 2015-12-04 00:15:37 +01:00
twinaphex
0db7cda264 Start moving rewind code to rewind.c 2015-11-30 22:25:13 +01:00
twinaphex
9824eb7ea9 Rename rarch_main_ctl to runloop_ctl 2015-11-30 21:42:59 +01:00
twinaphex
4e333302ae Rename RARCH_MAIN_CTL* to RUNLOOP_CTL* 2015-11-30 21:35:50 +01:00
twinaphex
1ed467f4e7 (audio_driver.c) Uniquely namespace static variables 2015-11-30 07:33:15 +01:00
twinaphex
0dd3451ca5 Create recording_push_audio 2015-11-30 01:49:17 +01:00
twinaphex
ef591c416d Cleanups 2015-11-29 23:01:37 +01:00
twinaphex
12e301825b Move audio_active to audio_driver.c 2015-11-29 21:34:45 +01:00
twinaphex
ff13338ca9 Move audio_data_own to audio_driver.c 2015-11-29 20:26:30 +01:00
sergiobenrocha2
7ef52f1da1 Add a Low Pass filter for CPS-1/2. 2015-11-26 22:12:46 -02:00
aliaspider
be5755fe59 (3DS) build fix. 2015-11-24 12:02:02 +01:00
Twinaphex
0958acd0b1 Merge pull request #2455 from aliaspider/master
(3DS) update.
2015-11-24 11:36:00 +01:00
aliaspider
f22d26f881 (3DS) rewrite the dsp audio driver to use a single looping wave buffer. 2015-11-24 11:04:22 +01:00
twinaphex
59e66b5755 Remove duplicate min/max macros 2015-11-24 00:38:48 +01:00
twinaphex
c94b5e5616 remove M_PI define 2015-11-24 00:36:11 +01:00
twinaphex
a3e52a9369 Put M_PI inside retro_miscellaneous.h 2015-11-24 00:05:37 +01:00
twinaphex
09fe26257c header include changes 2015-11-23 21:58:39 +01:00
twinaphex
229c25dfc7 Divorce driver->resampler from driver_t struct 2015-11-23 21:40:32 +01:00
twinaphex
18926e4df5 Divorce driver->resampler_data from driver_t struct 2015-11-23 21:37:27 +01:00
twinaphex
ca5184f8df (Dsound) Buildfix 2015-11-23 20:26:02 +01:00
twinaphex
ad5e0c5981 (CoreAudio) Buildfix 2015-11-23 20:25:30 +01:00
Alcaro
4d8c1680c2 Stupid includes... 2015-11-23 19:45:00 +01:00
Alcaro
7b66b65823 Add some error messages if the null drivers are used. 2015-11-23 19:42:46 +01:00
twinaphex
7dcf0bbf99 remove unused variable 2015-11-23 19:40:43 +01:00
twinaphex
e0f0590269 Rearrange header includes 2015-11-23 19:40:09 +01:00
twinaphex
a688baebe0 Divorce driver->audio from driver_t struct 2015-11-23 19:30:47 +01:00
twinaphex
24400bc797 Divorce audio_data from driver_t struct 2015-11-23 19:22:18 +01:00
twinaphex
8e0a2ee9e7 Turn audio_driver_flush into static function 2015-11-23 13:30:19 +01:00
twinaphex
b434689d39 (Win32) Buildfixes 2015-11-23 12:14:53 +01:00
Twinaphex
5974f81ed8 (OSX) Buildfixes 2015-11-23 12:07:00 +01:00
twinaphex
074f14b132 Add verbosity.c/verbosity.h 2015-11-23 12:03:38 +01:00
twinaphex
e02fdd5b5b Cleanups 2015-11-23 10:13:27 +01:00
twinaphex
b59e2907f3 Add RARCH_AUDIO_CTL_SETUP_REWIND 2015-11-22 15:25:43 +01:00
twinaphex
f60c3395f0 Create more RARCH_AUDIO_CTL commands 2015-11-22 15:22:08 +01:00
twinaphex
82e8cee97b Create RARCH_AUDIO_CTL_HAS_CALLBACK 2015-11-22 15:20:10 +01:00
twinaphex
08c6382c51 Refactor away another function 2015-11-22 15:16:03 +01:00
twinaphex
4ad4254107 Turn function static 2015-11-22 15:10:14 +01:00
twinaphex
9e83fedcd9 Create more RARCH_AUDIO_CTL_ commands 2015-11-22 15:07:11 +01:00
twinaphex
b603b735d5 Add RARCH_AUDIO_CTL_MUTE_TOGGLE 2015-11-22 14:30:31 +01:00
twinaphex
a88ae583cc Create RARCH_AUDIO_CTL_DEINIT/RARCH_AUDIO_CTL_INIT 2015-11-22 14:28:00 +01:00
twinaphex
0972c19f77 Add more RARCH_AUDIO_CTL commands 2015-11-22 14:23:29 +01:00
twinaphex
66d853358a Create audio_driver_ctl 2015-11-22 14:17:46 +01:00
twinaphex
0425f0564c Remove audio/audio_monitor.h 2015-11-22 13:35:57 +01:00
aliaspider
7f5ae4bdba (3DS) can compile with latest ctrulib/great-refactor.
fix some warnings.
2015-11-19 23:15:48 +01:00
twinaphex
810a2ea47c (Xaudio) Xbox build fixes 2015-11-17 11:17:18 +01:00
Twinaphex
0447c1b442 Merge pull request #2293 from aliaspider/master
(3DS) - add an audio driver using the DSP.
2015-10-27 01:38:38 +01:00
aliaspider
aeeb2a62d6 (3DS) - add an audio driver using the DSP.
- add some hooks to inspect memory usage.
2015-10-27 01:06:34 +01:00
twinaphex
db5d8d248b Create new char_list_new_special 2015-10-26 19:41:20 +01:00
twinaphex
b9febe2eed Add void pointer to string_list_special_new 2015-10-26 19:16:20 +01:00
twinaphex
dc01514db1 Finished with code de-duplication 2015-10-26 18:41:13 +01:00
twinaphex
bb10bc06b7 (string_list_special.c) Code de-duplication 2015-10-26 08:52:25 +01:00
twinaphex
02a43c6b2a Change 'rarch' to 'retro' namespace in libretro-common 2015-10-26 03:18:13 +01:00
aliaspider
339acfecf1 (CTR/3DS) update code to use ctrulib/great-refactor 2015-10-21 15:41:06 +01:00
twinaphex
10b1d121c6 Should fix audio filters regression 2015-10-03 22:23:23 +02:00
twinaphex
ba1ef9c3c2 (MSVC) Buildfixes 2015-10-02 17:57:37 +02:00
twinaphex
1f1d58bf61 (audio_dsp_filter.c) Buildfix 2015-09-29 18:13:10 +02:00
twinaphex
87d44af218 Static code analysis cleanups 2015-09-29 18:08:33 +02:00
twinaphex
28b9ac73ad (audio_dsp_filter.c) Refactor code flow 2015-09-29 16:55:58 +02:00
twinaphex
02a5d738fe Static code analysis cleanups 2015-09-28 23:00:22 +02:00
Twinaphex
4f02326171 Merge pull request #2179 from aliaspider/master
(CTR/3DS) improve audio/video sync.
2015-09-28 21:50:10 +02:00
aliaspider
48ec5190ba (CTR/3DS) improve audio/video sync. 2015-09-28 20:09:07 +01:00
twinaphex
b1c47d686c More static code analysis nits 2015-09-28 18:55:07 +02:00
twinaphex
6db07f7fd8 (xmb.c) Correct faulty usage of calloc 2015-09-28 18:49:32 +02:00
twinaphex
0cc56e2a1a More static code analysis nits 2015-09-28 18:44:28 +02:00
twinaphex
631da50dfa More static code analysis nits 2015-09-28 18:22:27 +02:00
twinaphex
4ca5d31f9b Some more static code analysis nits when ran with enable=all 2015-09-28 18:12:02 +02:00
twinaphex
b5456bc940 Another static code analysis fix 2015-09-28 17:01:41 +02:00
twinaphex
d482dba2eb More static code analysis fixes 2015-09-28 16:57:22 +02:00
Twinaphex
6647eab237 Merge pull request #2178 from aliaspider/master
(CTR/3DS) audio: add missing callbacks needed by DRC.
2015-09-28 16:51:02 +02:00
aliaspider
ec284a5db0 (CTR/3DS) change ctr_buffer_size to ctr_audio_buffer_size 2015-09-28 15:42:07 +01:00
aliaspider
40e2e7d636 (CTR/3DS) audio: add the missing callbacks needed by DRC and
compute_audio_buffer_statistics.
2015-09-28 15:39:30 +01:00
twinaphex
a79b571d7b Static code analysis fixes 2015-09-28 16:20:26 +02:00
aliaspider
e78136c38f (CTR/3DS) wait for audio channels playback start when setting playpos to
0.
2015-09-27 13:59:11 +01:00
aliaspider
6370f797b3 (CTR/3DS) start both left and right audio channels at the same time. 2015-09-27 13:48:23 +01:00
twinaphex
0d18c61bc5 Add RARCH_MAIN_CTL_IS_PAUSED 2015-09-26 13:04:07 +02:00
twinaphex
cc4a918296 Create rarch_main_ctl 2015-09-26 12:58:02 +02:00
twinaphex
5465da0139 Rename rarch_sleep to retro_sleep 2015-09-22 18:55:14 +02:00
twinaphex
8ba2045349 Add retro_file to audio/tests 2015-09-20 15:53:05 +02:00
twinaphex
2b840c0384 Refactor perf counters 2015-09-20 10:02:59 +02:00
twinaphex
4e398e7992 Use strlcpy everywhere 2015-09-19 15:30:15 +02:00
sergiobenrocha2
5600178879 Use flags from the system to build the filters, will avoid hardening-no-relro. 2015-09-18 03:29:39 -03:00
Francisco José García García
50172454d2 (Vita) Remove -U__ARM_NEON__ 2015-09-18 01:21:24 +02:00
twinaphex
7f946eb972 (Vita/PSP) Code de-duplication 2015-09-16 10:39:30 +02:00
Twinaphex
9d69e1992d (coreaudio.c) No longer use pthreads directly 2015-09-16 09:07:38 +02:00
twinaphex
4ccbee5d8d Update headers 2015-09-14 03:44:06 +02:00
Twinaphex
da3dd316b5 (CoreAudio) Include retro_endianness.h 2015-09-14 03:36:59 +02:00
twinaphex
8ca8b43545 Take out retro_endianness.h include out of retro_miscellaneous.h 2015-09-14 03:34:05 +02:00
twinaphex
e45cd48547 Cleanups 2015-09-13 06:40:29 +02:00
twinaphex
d6809537b0 (audio/test) Some buildfixes 2015-09-13 04:08:18 +02:00
twinaphex
7f9761afb6 Create kaiser_window_function/lanzcos_window_function 2015-09-13 03:43:59 +02:00
twinaphex
c4d46ce09f Cleanups 2015-09-13 01:08:36 +02:00
twinaphex
1fbc83f51e CLeanups 2015-09-12 22:27:58 +02:00
twinaphex
4a818c24ea (cc_resampler.c) Simplifications 2015-09-12 22:11:02 +02:00
twinaphex
b52bb48635 (cc_resampler.c) Minor nits 2015-09-12 21:19:38 +02:00
twinaphex
5adc85a207 Create libretro-common/include/filters.h 2015-09-12 21:04:20 +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
Alcaro
9554597160 Add missing header includes, fixes CXX_BUILD. 2015-09-06 14:46:25 +02:00
twinaphex
f88575633e Cleanups 2015-09-05 20:34:22 +02:00
twinaphex
b2f022ae30 (Win32) Some build fixes 2015-09-05 14:01:40 +02:00
Sergi Granell
dcd9f09d17 (Vita) Fix the audio driver 2015-09-02 18:56:05 +02:00
twinaphex
156cdd3295 Create memalign.c 2015-09-02 17:06:02 +02:00
twinaphex
bbbc353f28 Add sys/ppu_thread.h headers to ps3_defines.h 2015-09-01 16:12:07 +02:00
twinaphex
26e1de42bf (PS3) Remove custom PNG decoder
(PS3) Add header for sys_ppu_thread_ functions
2015-09-01 16:09:37 +02:00
twinaphex
309bd09cb0 Start adding some more build rules to Makefile.griffin for PSP,
move  some otherwise unused functions to else block
2015-09-01 10:32:36 +02:00
Sergi Granell
96146e5313 (Vita) Update vita2d driver
(Vita/PSP) Name some stuff to vita
2015-08-31 15:26:37 +02:00
CautiousAlbino
173dcd3e4c Retry implementation of include_compressed to dir_list_new.
Problem was that if ext_list wasn't used, an empty list would be
created.
2015-08-30 20:19:41 +02:00
Twinaphex
aa382a5c7c Revert "Add include_compressed param to dir_list_new." 2015-08-30 18:36:25 +02:00
CautiousAlbino
c4691b2668 Add include_compressed param to dir_list_new.
Do not try to load in compressed archives unless we expect them.
Fixes hang in input autodetect where it tried to parse a zip file as an
archive.
2015-08-30 16:57:34 +02:00
Sergi Granell
e60247d4b3 (Vita) Update psp_audio.c 2015-08-30 16:12:45 +02:00
Twinaphex
98f06988d6 Revert "(CoreAudio) Use rthreads"
This reverts commit 626592a7a6.
2015-08-30 10:32:19 +02:00
twinaphex
626592a7a6 (CoreAudio) Use rthreads 2015-08-30 10:25:25 +02:00
twinaphex
d92a24377d (ALSA) Don't use messy TRY_ALSA macro 2015-08-30 10:05:13 +02:00
twinaphex
5caf0627f8 Replace some references to sys_timer_usleep 2015-08-29 15:24:23 +02:00
twinaphex
cca2dd1713 Get rid of EMSCRIPTEN ifdef 2015-08-20 00:51:56 +02:00
twinaphex
e57202ff90 (Vita) psp_audio.c - Some more work 2015-08-12 14:47:39 +02:00
twinaphex
273788cdf9 (Vita) Attempt to reuse PSP1 audio driver for Vita 2015-08-12 12:18:45 +02:00
twinaphex
b892f8252b (PSP1) Audio - cleanup 2015-08-12 12:08:30 +02:00
Alcaro
ee2ad0c4bd These aren't executable. 2015-08-12 01:31:03 +02:00
radius
828734e007 don't try to autoconfigure GPIO devices 2015-08-11 17:13:25 -05:00
twinaphex
77aa7535c9 MOve all 'define' headers to central place ' defines' 2015-08-10 23:11:40 +02:00
Twinaphex
5bafed71ea removed unused variables 2015-08-05 13:09:11 +02:00
twinaphex
b18442dc5a Refactor is_slowmotion 2015-08-05 13:06:44 +02:00
twinaphex
ccac72f1e7 Refactor is_paused 2015-08-05 12:58:25 +02:00
twinaphex
bd6ee135e9 Take out runloop_t dependencies 2015-08-03 20:03:14 +02:00
twinaphex
e9ea6b1584 Change rules for append_plugs 2015-07-27 17:27:16 +02:00
twinaphex
4787c463b6 Backport this - 58748da89d 2015-07-27 00:08:25 +02:00
twinaphex
19542d4f00 Get rid of some superfluous wrapper functions 2015-07-12 11:21:05 +02:00
twinaphex
0189fa2c59 (audio_utils.c) Cleanups 2015-07-10 19:51:09 +02:00
twinaphex
33feed8aa7 (resamplers) Turn some 1-line inline functions into macros 2015-07-10 19:46:52 +02:00
twinaphex
3aff5a3ee2 Set audio callback function pointers to NULL during uninit_audio -
should fix Dinothawr crash when selecting 'Close Content'
2015-07-08 19:08:43 +02:00
twinaphex
c6992b3a6a Make audio_driver_callback and audio_driver_callback_set_state
more robust
2015-07-08 18:57:34 +02:00
twinaphex
4ac38a738f (audio_driver.c) Some cleanups 2015-07-08 18:38:46 +02:00
twinaphex
467452a698 Updates pt. 4 2015-07-02 18:55:49 +02:00
twinaphex
e0bf3b4ae4 (rewind.c) Updates 2015-07-02 18:23:18 +02:00
twinaphex
018c685b09 C89_BUILD fixes 2015-06-29 21:39:00 +02:00
Alcaro
d333bd0f77 Fix more C89 fails. 2015-06-26 19:35:36 +02:00
twinaphex
9ee860c6d9 Some more C89 fixes 2015-06-26 19:15:17 +02:00
twinaphex
7961d82e3c (sinc.c) Cleanup 2015-06-26 17:33:15 +02:00
twinaphex
9358114b9c (nearest.c) Indenting nits 2015-06-26 17:30:30 +02:00
twinaphex
bbfe2c4714 (cc_resampler.c) Cleanups 2015-06-26 17:20:54 +02:00
Alcaro
1bbd54f597 Some C89 strict fixes 2015-06-26 17:03:12 +02:00