Commit Graph

12260 Commits

Author SHA1 Message Date
twinaphex
7ea34ed4f0 (Griffin) Build fixes 2014-08-31 23:09:22 +02:00
twinaphex
ffee4a2534 (Menu) Add Ifdefs for shader manager menu backend code parts 2014-08-31 23:07:23 +02:00
twinaphex
5d9f96bc07 Refactor menu_parse_and_resolve - add call to menu_entries_push
and add int returnvalue for menu_entries_push
2014-08-31 22:49:07 +02:00
twinaphex
f348d4866f (Menu) Refactor menu_parse_and_resolve pt. 2 2014-08-31 22:41:25 +02:00
twinaphex
0eb93d4c44 (Menu) Refactor menu_parse_and_resolve 2014-08-31 22:23:32 +02:00
twinaphex
67ab867533 (Menu) Move code from menu_parse_and_resolve to menu_entries_push 2014-08-31 22:17:06 +02:00
twinaphex
81c5e4f459 (Menu) menu_parse_and_resolve cleanups 2014-08-31 22:11:31 +02:00
twinaphex
bac9f5ef8d (Menu) Refactor menu_parse_and_resolve 2014-08-31 22:08:10 +02:00
twinaphex
aa386698b3 (Menu) Cut down on unused variables 2014-08-31 21:56:36 +02:00
twinaphex
e2aa4cda43 (Menu) Refactor menu_parse_and_resolve 2014-08-31 21:30:45 +02:00
twinaphex
20987f7d76 (Menu) Simplify call to menu_entries_push 2014-08-31 19:52:47 +02:00
twinaphex
3e7fb6d1e1 (Menu) Remove dependency on General Settings enum 2014-08-31 19:47:45 +02:00
twinaphex
e649ae80ed (Menu) Refactor menu_entries_push 2014-08-31 19:41:28 +02:00
twinaphex
c5a98467be (Menu) Refactor menu_entries_push 2014-08-31 19:29:42 +02:00
twinaphex
8e5f103697 Use menu_entries header in menu_entries.c 2014-08-31 19:09:25 +02:00
twinaphex
a44665bcae Refactor prev/next driver settings 2014-08-31 19:06:32 +02:00
twinaphex
d34e08fb76 (Griffin) Add menu_entries.c to griffin.c 2014-08-31 18:37:22 +02:00
twinaphex
c114e51a2c (Menu) Split up menu entries code to menu_entries.c 2014-08-31 18:36:26 +02:00
Twinaphex
434562a6ad Merge pull request from mprobinson/master
Avoid flicker during BFI and slow-motion or pause
2014-08-31 17:13:23 +02:00
Twinaphex
bd3adc5aaa Merge pull request from mprobinson/jack-fix
Fix buffer overflow in JACK audio driver
2014-08-31 17:13:09 +02:00
Mike Robinson
addbcc6487 Fix buffer overflow in JACK audio driver
retroarch.c:flush_rewind_audio() can potentially send up to
audio_data.rewind_buf of 2048 frames (4096 samples) to audio_flush().

rarch_resampler_process() can potentially multiply the number of
frames by AUDIO_MAX_RATIO, to 32768 frames.

audio/jack.c:write_buffer() allocates a buffer of only 2048 frames on
the stack, which can overflow. This reliably happens when rewinding in
slow motion.

Multiply the JACK driver buffer by AUDIO_MAX_RATIO to prevent overflow.

However, DSP can also adjust the number of frames without limit. There
is no DSP_MAX_RATIO, so check the number of frames in
audio/jack.c:write_buffer() and truncate if they will not fit the
buffer. This will cause garbled audio, but in practice it is unlikely
to occur (DSP plugins do not usually add frames, flush_rewind_audio()
does not usually send the maximum possible number of frames).
2014-08-31 15:50:34 +01:00
Mike Robinson
d7cd930d40 Avoid flicker during BFI and slow-motion or pause 2014-08-31 11:05:09 +01:00
twinaphex
c111c33b80 (Menu) Take out unused MAPPING_PREVIOUS/MAPPING_NEXT 2014-08-31 04:55:37 +02:00
twinaphex
16d3f016be (Menu) Refactor more settings 2014-08-31 04:47:57 +02:00
twinaphex
9e6f6e45cf (Menu) Refactor audio_device setting 2014-08-31 04:42:21 +02:00
twinaphex
5f8b9d743c (Menu) Cleanups 2014-08-31 04:37:16 +02:00
twinaphex
a63ac9be99 (Menu) Cleanups 2014-08-31 04:34:51 +02:00
twinaphex
6d2a936cac (Menu) Cleanups 2014-08-31 04:27:23 +02:00
twinaphex
bda03a52fe (PS3) Take out triple buffering 2014-08-31 04:13:53 +02:00
twinaphex
b9ed33f1ad (Menu) cleanups 2014-08-31 04:09:11 +02:00
twinaphex
e86a434465 (Menu) Refactor flicker filter code 2014-08-31 04:07:07 +02:00
twinaphex
80f67baf1f (Menu) refactor system_bgm_enable setting 2014-08-31 04:03:04 +02:00
twinaphex
262ec8881a (PS3) Refactor PAL60 setting 2014-08-31 03:50:44 +02:00
twinaphex
27a60f1d5d Refactor Soft Filter menu option for Wii/Xbox 1 2014-08-31 03:38:21 +02:00
twinaphex
4b39038d57 Rename add_entry to add_setting_entry 2014-08-30 17:14:43 +02:00
twinaphex
9772eed739 (Menu) Refactor start screen and info screen 2014-08-30 16:56:45 +02:00
twinaphex
1993db16de (Menu) Get rid of debug label printing 2014-08-30 16:44:14 +02:00
twinaphex
c6816a0775 (Menu) Refactors - 80-char limit 2014-08-30 16:43:44 +02:00
twinaphex
df8399831d (Menu) Cleanups 2014-08-30 16:08:45 +02:00
twinaphex
6ae3fe3b84 (Menu) file_list_get_* functions now return 'label' too 2014-08-30 15:50:42 +02:00
twinaphex
d2f68481bc (Menu) Cleanup of code 2014-08-30 06:02:54 +02:00
twinaphex
ac6295ad50 (Menu) Add video_windowed_fullscreen setting 2014-08-30 05:18:28 +02:00
twinaphex
d9c876270d (Menu) Don't use driver enums 2014-08-30 05:15:12 +02:00
twinaphex
70764a99dd (Menu) Refactor handle_driver 2014-08-30 05:09:48 +02:00
twinaphex
2c9011e400 Cleanups to file_ext.h 2014-08-30 04:34:41 +02:00
twinaphex
1da139ade1 (XDK) Split up XDK input driver into separate input_ and joypad_ files 2014-08-30 03:48:51 +02:00
twinaphex
00f53247cd Split up input drivers into separate input_ and joypad_ files 2014-08-30 03:46:57 +02:00
twinaphex
fd3a419242 (PS3) Split off PS3 input joypad code into separate file 2014-08-30 03:41:13 +02:00
twinaphex
8133088add (Settings data) Set some g_extern variables for netplay settings 2014-08-30 03:28:57 +02:00
twinaphex
fcf05a70ce Get rid of settings_data.h includes in file_list.c/h 2014-08-30 03:14:32 +02:00