12246 Commits

Author SHA1 Message Date
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 #915 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 #916 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
Twinaphex
076ee20fa9 (Menu) Cleanups 2014-08-30 03:09:28 +02:00
twinaphex
0bc916a7e0 (Menu) Cleanups/cut down on code duplication 2014-08-30 03:07:27 +02:00
twinaphex
096563a6b8 (Menu) Take out some enums 2014-08-30 02:37:18 +02:00
twinaphex
d6aa625814 (Menu) Move get_last_setting to menu_common_backend.c 2014-08-30 02:25:55 +02:00
twinaphex
6c3635ef47 (Menu) Fix driver options 2014-08-30 02:00:10 +02:00
twinaphex
c6b8732e3a (Menu) Refactor file_list_push and associated setting related functionality 2014-08-30 01:56:12 +02:00
twinaphex
c1dead999a (Menu) Two more enums can go 2014-08-29 22:21:04 +02:00
twinaphex
645a9c3672 Another backported fix 2014-08-29 22:20:12 +02:00
Twinaphex
400e485b47 Merge pull request #912 from heuripedes/mingw-configure
Allow unix-like build under mingw
2014-08-29 22:18:38 +02:00
Higor Eurípedes
2703fa7f66 Allow unix-like build under mingw 2014-08-29 16:40:25 -03:00
Twinaphex
dab2dbe8bf Merge pull request #911 from heuripedes/master
(qb) Always call the correct pkg-config
2014-08-29 20:48:51 +02:00
Higor Eurípedes
f5a849216e (qb) Always call the correct pkg-config 2014-08-29 12:36:13 -03:00
twinaphex
39d1917c3b (Menu) Don't do scrolling acceleration for menu 2014-08-29 17:11:20 +02:00
twinaphex
2010c77c03 Fix check_volume 2014-08-29 10:22:11 -03:00