Commit Graph

652 Commits

Author SHA1 Message Date
twinaphex db189e1094 init_drivers - if driver.image is NULL, set it 2014-05-28 08:44:38 +02:00
twinaphex 0ea15de950 (GL) Force fp_fbo to false for PS3 for now 2014-05-27 21:55:54 +02:00
twinaphex 8fc357647d (RARCH_CONSOLE) Add find_image_driver() to global_init_drivers 2014-05-27 19:05:04 +02:00
twinaphex f788249c59 (Menu) Add get_default_menu function for default settings 2014-05-27 17:13:53 +02:00
twinaphex c55693855b (Menu) Add find_menu_driver to global_init_drivers as well 2014-05-26 23:39:21 +02:00
twinaphex 17267ff316 (Menu) ifdef find_menu_driver in init_drivers_pre 2014-05-26 23:20:00 +02:00
twinaphex e69b9c4f8a (Menu) Initialize menu driver during init_drivers_pre 2014-05-26 23:18:49 +02:00
twinaphex 619c96187b (Driver.c) driver.c was a big mess - split up into separate files
that get included in. Should probably be properly refactored later
on for all targets so that each included file becomes its own
object file
2014-05-26 19:01:40 +02:00
Themaister c7eee695ce Remove references to XML shaders. 2014-05-25 23:40:14 +02:00
Themaister addba80c3b Rewrite DSP plugin interface. 2014-05-20 12:28:33 +02:00
twinaphex 216a3e4ea7 (QNX) Change __BLACKBERRY_QNX__ define to __QNX__ 2014-05-20 02:48:11 +02:00
twinaphex 701a805737 (Playbook) Fixes Playbook build 2014-05-20 02:33:09 +02:00
twinaphex b2b5c6daec (Image) Put image functions through abstract interface
(Image) Add image_driver to retroarch.cfg to specify image driver to use
(Menu)  Add Image Driver to Drivers section
2014-05-10 20:26:58 +02:00
twinaphex d7c1ea5ece Revert "(RARCH_CONSOLE) Can finally get rid of global_driver_init"
Spoke too soon - we really need to refactor this mess so that
consoles, mobile and PC all follow the SAME basic initing/deiniting
structure. This kind of backwardsness is going to scale very, very
badly.

This reverts commit 540fad51a6.
2014-05-10 03:33:11 +02:00
Jean-André Santoni 22a5e07ead Merge branch 'master' of https://github.com/libretro/RetroArch 2014-05-09 16:24:36 +02:00
twinaphex 540fad51a6 (RARCH_CONSOLE) Can finally get rid of global_driver_init 2014-05-09 06:45:03 +02:00
Jean-André Santoni 7dda9f0b00 Lakka menu display and icons 2014-05-08 01:12:51 +07:00
twinaphex cb53d65fc3 Compile with HAVE_BUILTIN_FILTERS for Android - and some C90 build
fixes for filters. Note/FIXME: We need to get rid of the complex.h
dependency in the equalizer plugin
2014-05-03 04:59:35 +02:00
twinaphex 08965cfa0d Change HAVE_FFMPEG ifdefs into HAVE_RECORD - recording will get
a proper interface soon so there can be multiple implementations
instead of just ffmpeg
2014-05-03 00:21:07 +02:00
twinaphex f9cff5b00d Move extern references to built-in filters to driver.h 2014-04-30 02:38:13 +02:00
twinaphex 8321506b39 (MSVC) Build fixes 2014-04-29 23:02:07 +02:00
twinaphex 8c79314066 DSP Filters work now on non-HAVEDYLIB targets 2014-04-29 22:12:35 +02:00
twinaphex cdc60da07f (DSP Filters) Add code for HAVE_BUILTIN_FILTERS 2014-04-29 21:56:50 +02:00
twinaphex 1bf9a43db6 (DSP Filters) Add SIMD detection to DSP Filter API 2014-04-29 18:38:23 +02:00
twinaphex 669ebbabf6 (DSP filters) Bump up ABI of DSP Filter API to version 6 - make it
more like SoftFilters API
2014-04-29 18:24:49 +02:00
twinaphex e2eb36ce22 rarch_init_dsp_filter and rarch_deinit_dsp_filter now get called
by non-HAVE_DYLIB targets
2014-04-28 06:52:01 +02:00
twinaphex 6f13028aba (Audio DSP) Make it no longer dependent on HAVE_DYLIB being
defined
2014-04-28 06:45:50 +02:00
twinaphex 8a77674efc Cleanup rarch_deinit_dsp_filter 2014-04-28 06:35:40 +02:00
twinaphex 9f3ffa077d (Menu) Add DSP filter options 2014-04-27 18:15:41 +02:00
twinaphex 8d6a7dbe1f (Console) Bakes in filters now for ifndef HAVE_DYLIB targets 2014-04-16 03:33:10 +02:00
twinaphex 45c917afa4 Compile in filters for console ports (HAVE_DYLIB not defined in
Griffin)
2014-04-16 02:09:09 +02:00
Themaister d0a6f45565 Use modified width/height as filter buffer size.
Fixes scale2x segfault.
2014-04-15 19:36:41 +02:00
Themaister 4913683462 Small filter fixes. 2014-04-15 12:22:01 +02:00
twinaphex b01754e63b rarch_init_filter - pass color format as param instead of a bool indicating
if color format is of 32bit color
2014-04-15 05:13:56 +02:00
Themaister 4b97de0c9e Replace filter cruft with new stuff. 2014-04-15 00:03:55 +02:00
twinaphex 552c0ab495 use public scope for init_filter and deinit_filter 2014-04-13 18:29:57 +02:00
twinaphex e779681528 Add Privacy Options 2014-04-06 22:59:16 +02:00
Themaister ab2040a100 Avoid some confusing opaqueness.
First argument of menu_ctx_init_first must always be const menu_ctx_driver_t**.
2014-04-01 17:42:00 +02:00
twinaphex aadb940da8 Move menu_context.c code into driver.c 2014-04-01 04:12:41 +02:00
twinaphex 3f3af129de (XDK) Build fix #2 2014-03-07 20:21:12 +01:00
Themaister d98af82baf Honor ident param. 2014-02-25 09:56:39 +01:00
Themaister 21c383f77a Add initial SET_SYSTEM_AV_INFO environ. 2014-02-20 22:48:31 +01:00
aliaspider 650adef8da (PSP) added audio support 2014-02-17 14:26:03 +01:00
twinaphex ff6bd795cd (PSP) Video driver was not hooked up 2014-02-12 17:18:45 +01:00
Themaister 4653174cf5 Don't reset volume settings on driver reinit. 2014-02-08 16:24:21 +01:00
Tobias Jakobi 7cdb08b804 Add lima video driver
Documentation is provided in README-lima.
2014-01-26 04:43:00 +01:00
twinaphex f7915ab55e Change param for get_sensor_input 2014-01-20 14:59:06 +01:00
twinaphex 460670f074 Move sensor value reading to retro_sensor_interface 2014-01-20 14:52:53 +01:00
twinaphex 0a15a17d44 Update years on all license headers 2014-01-01 01:50:59 +01:00
twinaphex 17af6a0465 (D3D) Rename video_d3d9 to video_d3d 2014-01-01 01:09:31 +01:00
Themaister 65aafdc2f4 Fix warning. 2013-12-24 23:38:25 +01:00
Themaister 8a81ee856c Some Win32 fixes. 2013-12-24 14:10:18 +01:00
Toad King ccc797cadb don't reset keybinds on driver init 2013-12-23 20:05:09 -05:00
Themaister 188a233ec8 Add lifetime status callbacks to location interface. 2013-12-20 08:44:38 +01:00
twinaphex da6e360e49 (Location) Implement horizontal and vertical accuracy - Android's
location API only provides horizontal API but iOS/OSX API supports
both horizontal and vertical. Maybe consider implementing vertical
accuracy for Android by hand later
2013-12-19 17:36:27 +01:00
twinaphex 2f1327bf3e (Apple)location driver is baked in now for OSX too 2013-12-19 17:10:03 +01:00
twinaphex f0aa0f99fd (Location) Reimplement some parts of the location interface - get_latitude
and get_longitude are gone now in place of get_position. Basically,
from C land we basically do a poll-style queries, but on the
implementation side (ie. Android/iOS/OSX) - they all use callback-based
location updates. So we simply check in the poll function (get_position)
whether position has changed, and if so, update the pointer values and
return true - if not, set them to 0 and return false.
2013-12-19 15:47:47 +01:00
Themaister 855cb54def Some cleanups to location interface.
Avoid three redundant fields in struct.
Use unsigned instead of int for argument for API consistency.
2013-12-19 10:15:55 +01:00
twinaphex 031a9d05be (Location) Environ GET_LOCATION_INTERFACE should be implemented now 2013-12-19 05:51:25 +01:00
twinaphex e983aa4c35 (Location) Implement stub Android location driver - will still need
a couple of functions filled in
2013-12-19 03:37:26 +01:00
twinaphex ccd2246331 (Apple) Build fixes 2013-12-19 03:16:13 +01:00
twinaphex dfe42f4026 (Location) Add g_extern.system handle to retro_location_callback 2013-12-19 02:54:46 +01:00
twinaphex f29d590973 (Apple) Add location driver for Apple to location_drivers array 2013-12-19 02:41:48 +01:00
twinaphex 5f33a6b373 (Apple) Implement HAVE_LOCATION for OSX/iOS 2013-12-19 02:39:38 +01:00
twinaphex 742f85eafc Add HAVE_LOCATION - still need to write frontend drivers now for
location
2013-12-19 01:51:51 +01:00
twinaphex 38d785984f Add RETRO_ENVIRONMENT_GET_PERF_INTERFACE to libretro.h 2013-12-17 19:10:40 +01:00
Themaister c21310b261 Start adding udev input driver. 2013-12-07 14:13:40 +01:00
twinaphex cc7cda7252 (iOS) Skeleton camera driver 2013-12-01 14:41:18 +01:00
twinaphex de1bae69c9 (Android) Add skeleton camera driver 2013-11-17 19:47:37 +01:00
Themaister 271939875a Update libretro camera API.
Need initialized/deinitialized callbacks to properly
handle driver reinit.
2013-11-16 17:54:18 +01:00
Squarepusher 4ab77e8405 Merge pull request #385 from libretro/webcam-test
Emscripten webcam driver
2013-11-13 01:25:19 -08:00
ToadKing aaff8f2648 move prototype camera interface to libretro interface - GL texture only for now 2013-11-12 19:48:36 -05:00
twinaphex aec049c803 (OSK) Refactor - (Onscreen Keyboard) - PS3-only backend for now -
I will make an overlay-based backend soon too for all other platforms
2013-11-13 00:27:31 +01:00
Themaister dfff94e5a0 Rework camera interface.
Hook up a more proper interface for libretro. Still very experimental.
2013-11-12 16:02:26 +01:00
twinaphex 6a9bc1bfa4 (Menu) Show camera driver inside 'Drivers' category 2013-11-11 15:39:46 +01:00
twinaphex f8d44c6e60 (Camera) Add camera driver init/deinit when HAVE_CAMERA is defined 2013-11-11 14:26:57 +01:00
Themaister ae07e75e7c Hook up sensors API in libretro.
There are still many FIXMEs to be resolved before the interface
can lose its experimental status.
2013-11-03 12:06:14 +01:00
Themaister 970c973540 global_uninit_drivers() should come after main deinit.
Actually free video driver in global_uninit.
2013-11-03 10:42:05 +01:00
twinaphex aabbf835fc global_init_drivers - remove obsolete comment 2013-11-02 05:30:05 +01:00
twinaphex 71a23ac18e Slim down global_init_drivers - we can now get rid of the 'start'
function
2013-11-01 21:10:42 +01:00
twinaphex 727dc76db8 (Console/Android) Init input driver from context driver/graphics
driver from now on - just like PC - input driver initing can be
hoisted out of global_drivers_init that way
2013-11-01 16:33:32 +01:00
Themaister f2e85f9b9b Clean up driver prev/next/find a bit. 2013-10-30 23:37:46 +01:00
twinaphex aab3f93f56 Fix driver next/previous switching 2013-10-30 17:50:43 +01:00
twinaphex b2d1fe66b3 (RGUI) Can now change drivers from RGUI - you need to restart
for changes to take effect
2013-10-30 17:06:50 +01:00
Themaister 9be4fe705b viewport_info can be NULL. Check for this. 2013-10-26 18:51:00 +02:00
Themaister fc5ba8f79a Use configured aspect ratio to set windowed size.
Fixes some cases where core aspect is used and aspect_ratio_auto isn't set.
2013-10-26 18:31:48 +02:00
twinaphex d2c87e3039 Convert most C99-style for loop initial declarations to C89-compliant
ones
2013-10-22 15:08:17 +02:00
Themaister d215ec4ea8 Fix potential bug when HW render is used.
If e.g. D3D9 driver was used find_video_driver() would override GL
driver on reinit. Avoid this by doing this logic in find_video_driver()
instead.
2013-10-07 16:26:06 +02:00
twinaphex c052b2fb9c (RARCH_CONSOLE) Some cleanups 2013-10-06 23:14:41 +02:00
Themaister 3b97cdfdac Add threaded video option. 2013-10-06 17:23:49 +02:00
twinaphex 0798431175 (360) Fix build. 360 port works again 2013-09-29 20:49:04 +02:00
Themaister ae0d1ff282 Fix bug with use_float.
If audio driver changed from pulse to alsa via config change,
audio would be broken as use_float would be set to true.
2013-09-27 00:19:03 +02:00
Themaister c7db4aff64 Support variable strength for rumble motors. 2013-09-26 12:55:05 +02:00
Themaister 8b1ac3bc9e Add rumble tests to libretro-test. 2013-09-25 23:58:02 +02:00
Themaister a01ef18f80 Add RETRO_ENVIRONMENT_GET_RUMBLE_INTERFACE. 2013-09-25 23:21:32 +02:00
Themaister 841d8fa8e1 Add video_rotation.
Replaces g_extern.console.screen.orientation.
Rotation semantics have slightly changed to be more composable.
The rotation is now video_rotation + rotation set by cores themselves
(if allowed).

The config is now also saved properly.
2013-09-22 11:45:04 +02:00
Themaister 38ec55573c Rework SET_AUDIO_CALLBACK.
When disabling audio and/or muting, the core has no way
of knowing this, causing potential issues in a threaded mixer.

This environ is not used by any public core to my knowledge so the old
API has been removed and replaced with a change to environment number
(20 -> 22).
2013-09-14 17:28:09 +02:00
Hans-Kristian Arntzen 7d90ff4011 Merge pull request #303 from libretro/emscripten
Emscripten/Javascript port
2013-09-11 01:01:29 -07:00
ToadKing a09dda3a9d [EMSCRIPTEN] add custom input driver, removes SDL dependency + adds mouse support 2013-09-10 20:21:48 -04:00
meancoot 149a0f37d0 (Overlay Analog) Coding style fixes 2013-09-05 18:19:07 -04:00
ToadKing 04be8cbee2 new audio core, RWebAudio. Glitchy, but works well, even with requestAnimationFrame callbacks 2013-08-28 00:03:25 -04:00
ToadKing 87844cc486 Merge branch 'master' of https://github.com/libretro/RetroArch into emscripten
Conflicts:
	gfx/gl.c
2013-08-25 15:37:16 -04:00
Themaister e8271031b6 Stop/start audio driver on mute. 2013-08-11 01:09:10 +02:00
Themaister a543b5da74 Fix threaded audio race conditions. 2013-08-11 01:07:59 +02:00
Themaister f4a23115c2 Begin adding AUDIO_CALLBACK/FRAME_TIME_CALLBACK. 2013-08-11 01:05:33 +02:00
Themaister 3dd5cd39c4 Add cache_context/destroy notification. 2013-08-11 00:55:05 +02:00
Themaister b33af9d6b6 Fix some context_reset() calls being missed. 2013-08-11 00:53:46 +02:00
Themaister e18af77412 Add path to cache GL context on reinit.
If successful, can avoid libretro GL reset context callback being
called.
2013-08-11 00:53:19 +02:00
Themaister b268c2957c Don't spam errors when in RGUI and threaded video. 2013-08-10 23:58:56 +02:00
twinaphex f7622d3294 Add OMAP graphics driver (Tobias Jakobi) 2013-07-28 18:37:31 +02:00
ToadKing 49398698b5 initial emscripten port (no audio/files, input broken) 2013-07-17 20:26:01 -04:00
meancoot 78acc25931 (Apple) Add keyboard input support for OSX 2013-07-07 16:01:58 -04:00
twinaphex 308e64094b (ALSA QSA) Add preliminary ALSA QSA driver based on CatalystG's
audio driver for PCSX ReARMed - still broken - exits at 'Error:
Channel Parameter Error - no such process'
2013-06-21 18:56:39 +02:00
Themaister d5a8d3bfb0 Can update video refresh rate from RGUI. 2013-06-07 14:34:09 +02:00
Themaister b0b6e65ab6 Add monitor refresh rate monitor in RGUI.
Doesn't support updating refresh rate setting yet.
2013-06-07 14:10:42 +02:00
Themaister cee493fb18 Make integer scale robust against rounding errors. 2013-06-05 21:48:52 +02:00
Themaister ac6c576d29 Drop dependency on delay_timer in RGUI. 2013-04-26 23:52:29 +02:00
Themaister 9a3875d99a Don't hardcode new delay timers in RGUI.
Delay timers are reset in driver.c.
2013-04-26 20:16:58 +02:00
ToadKing 73e4adf8dc adjust delay timers when resetting frame count 2013-04-26 13:12:45 -04:00
twinaphex 34619412bc (RARCH_CONSOLE) Get rid of video_stop_func 2013-04-24 16:08:18 +02:00
Themaister 3c31d6118a Fix video_poke check causing SDL crash. 2013-04-21 23:17:34 +02:00
Themaister be01a0ea59 Refactor aspect ratio handling.
Rework aspect ratio handling in RGUI.
Custom viewports work on PC. Ensure that aspect_ratio_idx persist
through reentrancy. Change ASPECT_RATIO_AUTO to ASPECT_RATIO_SQUARE to
better signal that it's the square pixel option.

Add ASPECT_RATIO_CONFIG as an option to use config file defined aspect
ratio.
2013-04-20 10:56:04 +02:00
Themaister db183b5d97 Fix shader dir crash if folder doesn't exist. 2013-04-16 12:01:50 +02:00
Themaister c7c952113a Reset frame_counter on driver reinit.
Avoids "Unnamed Window" for 3-4 secs on restart.
2013-04-16 00:57:46 +02:00
Themaister c9fed3c6e9 More stringent pointer checking. 2013-04-14 12:24:16 +02:00
Themaister 36ea8f9cf6 Fix logic bug in driver_set_nonblock_state. 2013-04-14 11:52:15 +02:00
Themaister f968ee6527 Refactor nonblock states.
Preserve nonblock state better across reinits, etc.
Try to keep vsync in RGUI.
2013-04-14 00:56:55 +02:00
Themaister 8fee69776f Disable threaded driver with HW render.
Won't work so simply.
2013-03-30 21:20:26 +01:00
OV2 4c4bbf3cf0 Fix build without HAVE_FBO 2013-03-30 14:48:33 +01:00
Themaister 4bcc566afb Fix some possible segfaults with HW render. 2013-03-28 12:27:40 +01:00
Themaister 1cececac18 Add get_proc_address.
Render something "real" in GL.
2013-03-28 01:11:32 +01:00
Themaister af40f3e9b8 Add initial GL direct rendering test. 2013-03-27 16:15:15 +01:00
CatalystG 1e58421c84 (BlackBerry) Get input overlay to show when booting to RGUI 2013-03-24 20:42:09 -04:00
twinaphex 82329cf097 (Blackberry) Starts up in RGUI mode now - should (hopefully) allow
for dynamic changing of libretro core and selection of ROM instead
of hardcoded paths.
2013-03-24 01:00:00 +01:00
CatalystG be9a8e63f4 Add input driver for QNX. Copy null driver for now.
Conflicts:
	griffin/griffin.c
2013-03-19 19:26:36 -04:00
Themaister 51b5a2df5c Refactor aspect_ratio member.
Mutate in g_extern.system.aspect_ratio to avoid
getting wrong aspect ratio on reentrancy.
2013-03-17 22:05:15 +01:00
twinaphex f028a8555e Revert "Move set_keybinds autoconfiguration (that is done on every console"
This reverts commit c26653fca8.
2013-03-16 17:51:37 +01:00
twinaphex b59c262971 Revert "Move console 'set default binds' and 'set analog stick' default"
This reverts commit 5f2a808042.
2013-03-16 17:51:00 +01:00
twinaphex 5f2a808042 Move console 'set default binds' and 'set analog stick' default
set_keybindings to global_init_drivers
2013-03-16 17:44:24 +01:00
twinaphex c26653fca8 Move set_keybinds autoconfiguration (that is done on every console
port) to driver.c - reducing lots of duplicate code
2013-03-16 17:24:24 +01:00
twinaphex 3bc487be87 Merge branch 'ios' of git://github.com/meancoot/RetroArch 2013-03-15 20:05:15 +01:00
twinaphex 24a4618f88 (Minizip) Don't go through ioapi's function pointers - negates
dependency on ioapi.c
(driver.c) ifdef start/stop() calls with RARCH_CONSOLE for now
2013-03-13 05:06:26 +01:00
twinaphex c28bb3a3fd Move init_console_drivers and uninit_console_drivers to driver.c
and rename them global_init_drivers and global_unit_drivers -
we'll need this for Blackberry, starting RetroArch with RGUI
at startup AND consoles
2013-03-13 04:16:56 +01:00
meancoot 9fadca2a54 Merge branch 'master' of https://github.com/Themaister/RetroArch into ios 2013-03-09 20:09:32 -05:00
Themaister e1a545b695 Explicitly clear out poke interface to NULL. 2013-03-10 01:20:16 +01:00
Themaister 2681f14032 Add video_poke_interface_t. 2013-03-10 01:17:17 +01:00
meancoot 06bb6b7840 Merge branch 'master' of https://github.com/Themaister/RetroArch into ios 2013-02-21 22:18:14 -05:00
Themaister 76bf41188a Add video_threaded option to Android. 2013-02-17 00:26:17 +01:00
Themaister 843d079002 Begin adding threaded video driver wrapper. 2013-02-16 02:48:08 +01:00
meancoot 5d139b185b Merge branch 'master' of https://github.com/Themaister/RetroArch into ios 2013-02-15 18:54:57 -05:00
Themaister 11d919b9e8 Fix downsampling for SINC. 2013-02-13 21:55:58 +01:00
meancoot 19fb2fe8f4 Merge branch 'master' of https://github.com/Themaister/RetroArch into ios 2013-02-11 17:13:31 -05:00
Themaister 5632836446 Report how many frames is needed to measure FPS. 2013-02-10 14:34:03 +01:00
Themaister 3b5eedeab5 Measure frame times at frame granularity. 2013-02-10 01:42:56 +01:00
Themaister cb1c3b5943 Add very specific debug logging for FPS measurements. 2013-02-10 00:02:18 +01:00
Themaister 0c460c524d Disregard first measurement for statistics. 2013-02-09 23:26:24 +01:00
Themaister d33d2e9f0c Make resamplers more modular. 2013-02-08 11:49:51 +01:00
meancoot 7e4e028fc8 ios: Add a simple input driver draft; tracks only one touch for now. 2013-02-06 18:23:11 -05:00
Themaister 1df86a722a Rework FPS measurement. 2013-02-05 12:51:12 +01:00
Themaister 27d57b789a Add basic FPS measurement routines. 2013-02-04 21:46:56 +01:00
Themaister 7ab8eaec02 Use NEON conditionally for sample conversions. 2013-01-24 18:37:42 +01:00
Themaister 019959a012 Add audio buffer statistics measurement. 2013-01-18 10:38:43 +01:00
twinaphex 1b398a1941 (PSP) comment out non-working video driver for now - use null video
for now
2013-01-10 04:22:42 +01:00
twinaphex 589b5eefdb (360) 360 audio driver now goes through the same Xaudio driver
as PC
2013-01-09 22:04:28 +01:00
twinaphex 403a087926 Null drivers have to be explicitly compiled in now -
otherwise they are ommitted
2013-01-09 05:54:48 +01:00
Themaister 31dc256e19 Do not allow audio to be initialized twice. 2013-01-08 13:23:15 +01:00
Themaister 235244e438 Use safer checking when dealing with FP. 2013-01-08 12:42:28 +01:00
ToadKing 1dc08b9a6d (GX) work with new console code 2013-01-07 23:48:21 -05:00
twinaphex c76ae2a8d1 (RARCH_CONSOLE) Use init_drivers_pre once at startup of console
ports - use driver.video, driver.input as much as possible from
then instead of explicit platform-specific drivers
2013-01-07 18:18:44 +01:00
twinaphex 9251eebe13 (RARCH_CONSOLE) Make find_video_driver public in scope and use
it in console ports
2013-01-07 17:48:45 +01:00
twinaphex 1cae4de653 (Android) More elegant way of setting refresh rate 2013-01-05 06:02:02 +01:00
ToadKing fd0bb1b3ee make alsathread a seperate audio driver 2013-01-04 14:58:34 -05:00
Themaister 276b588217 Add custom xml parser. Use as fallback. 2013-01-02 15:18:42 +01:00
Themaister 0b4cf2d053 Update license headers to 2013. 2013-01-01 01:41:15 +01:00
Themaister e3378c219c Use crude ref-counting for driver handles. 2012-12-25 23:18:19 +01:00
Themaister e4e0d9c72d Reset driver.* handles on driver reinit. 2012-12-25 00:01:06 +01:00
twinaphex e8a57f21cd (Android) Fix - restore state functionality broke again due to
'refactor' in driver.c - this does not work for re-entrancy - please
consult with me
2012-12-24 18:06:51 +01:00
Themaister 225647d0e3 Add public function to set refresh rate of monitor. 2012-12-23 19:05:20 +01:00
Themaister 35bf5c82c1 Make OVERLAY optional. 2012-12-23 18:39:01 +01:00
Themaister 9056946079 Merge branch 'master' into overlay 2012-12-22 11:38:18 +01:00
Themaister 6bb2349833 Kill off external driver plug interfaces.
These are too much work to maintain, and aren't really all
that useful.
2012-12-22 11:37:15 +01:00
Themaister ca9f081d27 Make input overlay configurable. 2012-12-20 20:23:53 +01:00
Themaister a1fd01dbc6 Add some TODOs for overlay. 2012-12-20 15:53:09 +01:00
Themaister 47a98ef205 Make overlay polling completely independent. 2012-12-20 15:33:54 +01:00
twinaphex a697b562f6 (PSP2) Rename to Vita 2012-11-26 03:16:20 +01:00
Themaister f6e2c190ad Fix memory leak on consoles. 2012-11-23 22:46:36 +01:00
twinaphex 728b775905 (PSP1) Add preliminary PSP1 video driver 2012-11-23 05:20:05 +01:00
twinaphex 3b6fffa9f9 (PSP1/PSP2) Refactor psp_input.c - should now work for both PSP1
and PSP2
2012-11-23 02:40:03 +01:00
twinaphex c837e1101d (PSP2/Griffin) Add video driver hooks 2012-11-22 23:32:42 +01:00
twinaphex f278bc7f55 (PSP2) Add input driver 2012-11-22 18:37:10 +01:00
Themaister 91edc8ff49 Add volume control.
It imposes no performance loss as it is performed
during s16->float conversion.

It is however grouped together with check_mute.
2012-11-03 14:15:03 +01:00
Themaister f9693f7ea2 ARRAY_SIZE to simplify some for-loops. 2012-10-26 23:15:34 +02:00
Themaister e53dd431b4 Begin merging D3D9 driver. 2012-10-26 22:18:26 +02:00
Themaister a79ca54bc7 Fix CXX_BUILD. 2012-10-21 23:24:25 +02:00
Themaister 668ff7687e Let CPU filters work with any format. 2012-10-21 22:59:13 +02:00
Themaister 93078889cc Begin reworking RGB565 as default pixel format. 2012-10-20 01:12:02 +02:00
twinaphex 63238d3b67 (OpenSL) Add preliminary driver - OpenSL ES implementation in NDK
is a half-baked, half-implemented hackfest, so will have to go over
Android-specific examples to get this to work
2012-10-18 05:46:09 +02:00
twinaphex a675c4348f (Android) Split off input code into its own driver 2012-10-16 19:46:59 +02:00
twinaphex 608d3718a3 (Android) Android does not redirect stderr to the logger - so we
need to wrap all stderr fprintfs - this will help for Xbox 1 too
which also doesn't redirect stderr
2012-10-16 13:57:35 +02:00
Themaister be7a63932f Remove output_rate from DSP plug. 2012-10-16 12:54:58 +02:00
twinaphex 11465db9c1 (Android) We now do everything natively (including video) - so
we no longer need this
2012-10-16 12:01:00 +02:00
Themaister 11b9f039b2 Remove some useless ifdefs. 2012-10-14 23:22:16 +02:00
Themaister b8abf34785 Purge some now useless code.
Removes manual input rate adjustments.
Don't allow DSP plugs to resample as it would complicate things alot
with dynamic rate control.
Also purges optional ssnes_* symbols for external plugs.
2012-10-13 20:22:45 +02:00
twinaphex 7f0f6bc0a7 (Android) Video init/deinit will only be invoked frm Java side/
surface - so ifndef it out for ANDROID
2012-10-09 18:48:04 +02:00
twinaphex 8132f9fd8a (Android) Add Android context hooks 2012-10-09 00:11:11 +02:00
Themaister 5ae20a9f3c Log if graphics driver doesn't init input. 2012-09-30 15:03:53 +02:00
Themaister 74d7707875 Add dinput to input driver list. 2012-09-30 14:59:27 +02:00
Themaister c655c1d4e5 Big refactor of joypad input. 2012-09-28 23:06:16 +02:00
Themaister 704af0e0b7 x_input depends on HAVE_X11. 2012-09-25 15:14:56 +02:00
Toad King 500139f1b5 change video_rpi into a more generic video_vg 2012-09-24 15:19:07 -04:00
Themaister 102d30473e Shader directory looks for Cg/Cgp shaders. 2012-09-21 21:20:30 +02:00
Toad King 012c7def7b big Raspberry Pi-related changes
* convert old rpi video driver into a generic OpenVG driver
* add VideoCore EGL context
* build GLES by default if VideoCore detected (currently does not run)
2012-09-18 19:42:17 -04:00
Twinaphex e58d9f31dd (Android) Don't compile in linux_inputraw for Android - use
pretro_get_system_info instead of retro_get_system_info
2012-09-10 01:53:42 +02:00
Themaister 29a1e7ac27 Purge some still lingering SSNES-isms. 2012-09-07 21:56:26 +02:00
Themaister 3f613882a3 Avoid using IS_LINUX. Use plain __linux__. 2012-09-03 00:08:33 +02:00
Themaister 405a901d18 Be more careful about overwriting global settings in driver init. 2012-08-15 20:43:26 +02:00
Themaister 7372509bef Revert "(Libretro) Add nonblock_state"
This reverts commit 211381bb89.
2012-08-15 19:52:48 +02:00
Twinaphex 211381bb89 (Libretro) Add nonblock_state 2012-08-15 09:44:17 +02:00
Twinaphex 0e5528796d Set nonblock_state_func argument for >60Hz emu ports/games to true 2012-08-12 11:55:52 +02:00
Twinaphex 1af593f910 (RARCH_CONSOLE) Run set_nonblock_state if an emu runs at more than
60fps/60Hz - to forcibly set vsync off
2012-08-12 09:19:42 +02:00
Themaister e14a679f83 Forcefully disable VSync if game FPS >> monitor FPS. 2012-08-12 00:40:21 +02:00
Twinaphex 5e97b86e65 (GX) Change wii_ naming conventions to gx_ 2012-08-09 03:54:27 +02:00
twinaphex ded6f69933 (Xbox) Added RARCH_CONSOLE functions for null video driver - using null video driver for Xbox 1 for now 2012-07-08 18:21:29 +03:00
twinaphex 0951020196 (360/Xbox 1) Refactor XInput driver with portability in mind 2012-07-07 20:56:46 +03:00
twinaphex 9d5978cb3e (360/Xbox 1) xdk360_video changed 2012-07-07 20:15:06 +03:00
Twinaphex 5b8c426b3c (360) Xinput2 driver moved to input/ 2012-07-07 16:20:31 +02:00
Themaister b84bcc3670 Check if use_float is set while doing fixed point. 2012-07-06 18:15:14 +02:00
Themaister 7b12182a0f Add optional fixed point resampler. 2012-07-06 17:36:37 +02:00
TwinAphex51224 0faac2faf9 (Xbox 1) Don't include in the Xbox 360 drivers 2012-06-24 23:31:36 +02:00
Themaister 14f7f641f3 Refactor directory listing to greatly optimize sorting. 2012-06-23 15:32:46 +02:00
Themaister fd017b8f57 Add NULL drivers. 2012-06-20 00:43:41 +02:00
Toad King 4f3e54529b Merge branch 'master' of http://github.com/Themaister/RetroArch
Conflicts:
	qb/config.libs.sh
2012-06-18 18:50:22 -04:00
Themaister f0fab577e7 Take the slow but more correct path for directory sorting. 2012-06-19 00:16:59 +02:00
Themaister a1f5715431 Add sorting and size query to dir_list_new. 2012-06-18 01:11:03 +02:00
Themaister e455e52e06 MAJOR refactor of dir_list_new. 2012-06-18 00:34:47 +02:00
Themaister 53f645ed0b Add SET_PIXEL_FORMAT environ. 2012-06-16 15:07:31 +02:00
Toad King 7986e01cbf Merge branch 'master' of http://github.com/Themaister/RetroArch
Conflicts:
	qb/config.libs.sh
2012-06-14 03:03:12 -04:00
Twinaphex df6a9a0f85 Set up dir_list_new so that we can use it for the 360/PS3 filebrowser 2012-06-10 03:50:06 +02:00
Toad King 6c79d66e1b linuxraw input: gets input straight from stdin
WARNING: this mode uses a raw keyboard mode. if the emulator does not exit cleanly, you could be left at a terminal with no form of input. do not use this mode for testing.
2012-05-25 15:44:39 -04:00
Toad King 350af0a458 initial Raspberry Pi work. Currently just displays a solid blue screen. 2012-05-23 02:31:29 -04:00
Themaister b95b101a37 Add compat to external APIs. 2012-04-21 23:36:55 +02:00
Themaister ce740f8948 More fixups. 2012-04-21 23:31:57 +02:00
Themaister aab8fb6151 ssnes_* => rarch_*. 2012-04-21 23:25:32 +02:00
Themaister 9ab51ad23a SSNES => RetroArch. 2012-04-21 23:17:43 +02:00
Themaister da4f176053 Fix segfault when audio driver fails to initialize. 2012-04-19 21:09:27 +02:00
Themaister f6ed5902c2 Fixups for aspect_ratio_auto. 2012-04-15 21:48:32 +02:00
Themaister abaa4f371d Add video_aspect_ratio_auto setting. 2012-04-15 17:36:09 +02:00
Themaister c7e6a0de06 Fix bug when maximum geometry was not POT. 2012-04-11 23:14:08 +02:00
Themaister 0dff4dad52 Allow cores to infer aspect ratios other than PAR 1:1. 2012-04-09 22:19:51 +02:00
Themaister e3a71a8c5b Fixup headers. 2012-04-09 22:05:26 +02:00
Themaister 5d51942f69 libretro fixups. 2012-04-09 22:04:43 +02:00
Themaister 62c96ea937 Change license header. 2012-04-09 22:03:57 +02:00
Themaister 9698cd7dbd Change headers. 2012-04-09 22:03:57 +02:00
Themaister 2178a14952 Find drivers before snes_init() to allow rotation to work properly. 2012-04-01 19:38:50 +02:00
Themaister 34bdea0f1c Add rotation to GL driver (PC). 2012-04-01 19:20:37 +02:00
Themaister eee0233abb Wrap driver calls in overridable macros. 2012-03-29 00:30:50 +02:00
Themaister 9ab02b12be Move compat functionality to compat/. 2012-03-16 23:26:57 +01:00
Themaister 49f27c68ff Style nits. 2012-03-12 21:45:43 +01:00
Themaister 6e0da33c60 Fix allocation. 2012-03-04 13:20:09 +01:00
Themaister ea0233716e Slow motion mode. 2012-03-04 12:01:07 +01:00
Themaister aecd9a1ecb Rename resampler functions to something more generic. 2012-02-23 23:22:08 +01:00
Themaister 438ac4ca4b Begin adding rate control. 2012-02-14 01:16:37 +01:00
Themaister 9c861f13be Fix additional exclamation marks. 2012-02-11 21:16:01 +01:00
Themaister 79f29a3966 Add test case and some fixes for re-entrancy. 2012-02-01 21:32:27 +01:00
Themaister ee7bacd2bc Fix critical performance regression. 2012-01-14 23:15:25 +01:00
Themaister abf34c06c1 Attempt to always return from ssnes_main_init() when errors occur. 2012-01-14 16:08:54 +01:00
Themaister b4248038fb Update license headers. 2012-01-08 01:12:05 +01:00
TwinAphex51224 ebea0220cd (360) Added 360 solution and added some defines 2012-01-05 13:30:13 +01:00
Themaister c5d1fd32d5 Deinit audio before video. 2011-12-25 19:31:05 +01:00
Themaister 672102d377 Change asserts to ssnes_assert(). 2011-12-25 12:47:47 +01:00
Themaister 0724ab2ca1 Fix assertion bugs. 2011-12-25 12:13:19 +01:00
Themaister c272ba56ad Fix build for Release mode. 2011-12-25 11:45:27 +01:00
Themaister eac468ba19 MSVC compat. 2011-12-25 01:38:59 +01:00
Themaister d5fca50a2f Can build for C++. 2011-12-24 15:26:01 +01:00
TwinAphex51224 7c28a62b40 (Libxenon) No more SDL 2011-12-15 13:54:22 +01:00
Themaister 7f5db4d70f Boots up, but broken graphics. 2011-12-14 21:44:03 +01:00
Themaister 534163a57f Start adding stuff for Wii. 2011-12-14 12:49:13 +01:00
TwinAphex51224 757fa71469 (Libxenon) Added (non-working) input driver 2011-12-14 01:35:17 +01:00
TwinAphex51224 1136820124 (Libxenon) Terribly borked libxenon audio driver :) 2011-12-13 23:17:37 +01:00
Themaister ff0c3f047a Some cleanups. 2011-12-04 18:06:50 +01:00
Themaister fc43e7155e Should fixup input. 2011-12-02 15:33:14 +01:00
TwinAphex51224 5a3232adff (PS3) SSNES PS3 lives :) - audio, video works - controls don't
seem to work
2011-12-02 03:46:31 +01:00
TwinAphex51224 d03f351f33 (PS3) Crashes in find_audio_driver (driver.c) 2011-12-02 03:32:04 +01:00
Themaister 1356d0ab4c .___. 2011-12-02 02:41:32 +01:00
Themaister 2b6c252747 Minor fixes. 2011-12-02 02:22:29 +01:00
Themaister 08ef01bb13 Merge branch 'master' of github.com:Themaister/SSNES into ssnes-consoles
Conflicts:
	dynamic.c
2011-12-02 00:07:54 +01:00
Themaister 9d124b2380 Do not use anything dylib related if not compiled in. 2011-12-01 22:36:26 +01:00
Themaister e7f1526942 Fix compilation errors. 2011-12-01 21:54:42 +01:00
TwinAphex51224 2e34c6fc5c Moved in old PS3 audio driver 2011-11-30 17:11:42 +01:00
Themaister bb5e31df0d Still record audio even if audio is not enabled. 2011-11-20 02:06:25 +01:00
Themaister e49d216884 Check for large skews in timing. 2011-11-19 14:16:55 +01:00
Themaister 81b0e6d0a3 Use display refresh rates rather than input rate directly. 2011-11-18 15:14:56 +01:00
Themaister 1981b14de9 Allow OpenGL to be disabled. 2011-11-01 18:24:43 +01:00
Themaister b4de704a09 Style nit. 2011-10-30 02:12:00 +02:00
Themaister fef5edfac8 Change default aspect handling. 2011-10-30 01:58:08 +02:00
Themaister 0522a2d6a0 Start implementing some minor extensions to libsnes. 2011-10-27 23:40:34 +02:00
Themaister 5d1d188231 Hardcode hermite for 2 channels. 2011-10-20 22:26:41 +02:00
Themaister 5ae0cb1821 Base size for windowed mode calculations. 2011-10-16 21:36:17 +02:00
Themaister e91ebdac97 Do not recalculate ratio all the time. 2011-10-15 16:16:13 +02:00
Themaister b2dd12d186 Rewind audio! :D 2011-10-15 14:33:41 +02:00
Themaister 25f0e162a4 Purge support for libsamplerate. Obsolete. 2011-10-15 12:48:15 +02:00
Themaister a3ee8c8849 Defensive nit. 2011-09-20 11:58:21 +02:00
Themaister 4395f124ca Slight fixups. 2011-08-14 04:50:16 +02:00
Themaister a405708f1c Huzzah, ordering matters. 2011-08-09 00:11:09 +02:00
Themaister 14ae5e397a Add CoreAudio driver. Untested. 2011-08-08 17:27:52 +02:00
Themaister 776291a137 Start working on DirectSound driver. Untested so far. 2011-08-04 18:45:40 +02:00
Themaister 75d1155a23 Fix OSS build for BSD. 2011-06-16 23:20:12 +02:00
Themaister 69227bc1ca Alter design. Use DInput as piggyback only. 2011-06-10 17:34:04 +02:00
Themaister 851debf1e4 Start working on DInput. 2011-06-10 16:55:05 +02:00
Themaister a605628dff :v 2011-06-06 18:50:59 +02:00
Themaister 44c52ca4f8 Add -pedantic for shits 'n giggles.
Fix portability issues with void* -> void (*)(void) casts.
Use a more ... bizarre technique ;)
2011-05-31 15:03:59 +02:00
Themaister 9b6e6a1215 Goddamnit, it was ARGB after all o.O weird. 2011-05-28 14:11:37 +02:00
Themaister 7f1cd62c8a Update DSP API for config callback.
Clean up API a bit to have separate
SSNES_*_API_VERSION defines.
2011-05-17 19:20:41 +02:00
Themaister 5d5865cfd8 Add external API for audio driver. 2011-05-15 01:46:11 +02:00
Themaister 4cc17a74f7 Clean up error handling a bit. 2011-05-13 21:22:37 +02:00
Themaister 8ceb8225ad DSP plugin interface, weeee :D 2011-05-13 21:05:28 +02:00
Themaister 4b9e46ff06 Update config. 2011-05-11 17:57:31 +02:00
Themaister 75d618140b Some more work on external API. 2011-05-11 17:52:16 +02:00
Themaister bbf5a1ee72 Should fix aspect ratio calculation. 2011-05-05 11:38:57 +02:00
Themaister d2f2ab6a9d Windowed width with xscale depends on aspect ratio. 2011-04-24 02:44:02 +02:00
Themaister d317a9773f Start on SDL video driver. 2011-04-21 03:23:44 +02:00
Themaister d3eed4f8c4 Properly ifdef. 2011-03-29 19:15:02 +02:00
Themaister 647db4d5de Hrm. 2011-03-29 19:13:14 +02:00
Themaister 1706763a4c Start supporting shaders hiding in a directory. 2011-03-29 18:04:41 +02:00
Themaister adfd461c3e Start on XVideo 2011-03-13 04:51:09 +01:00
Themaister 1cf9381cb0 Fix colormaps and stuff. 2011-03-07 19:56:40 +01:00
Themaister f94dc125e5 An initial take on bsnes CPU filters. 2011-03-07 19:12:14 +01:00
Themaister 96b978d55a Start on modular CPU filters. Abandon the old CPU filter stuff. 2011-03-07 17:22:03 +01:00
Themaister 91d2cea259 Make the hermite resampling core more robust. 2011-02-06 18:38:04 +01:00
Themaister 820b124165 Add hermite resampler core :) SRC is disabled by default. 2011-02-06 13:29:48 +01:00
Themaister e83f3ed444 Initial PulseAudio code. 2011-01-29 01:15:09 +01:00
Themaister 8c1ef3051d Add XAudio support. Need a separate xaudio-c.dll which actually implements the interface. 2011-01-27 01:57:25 +01:00
Themaister 2267c7d048 Update licensing headers. 2011-01-23 20:29:28 +01:00
Themaister c7e6e73bcb Fix a blooper in headers. 2011-01-17 20:54:58 +01:00
Themaister 5c9c4f42c3 Clean up float handling a bit.
ALSA now checks if floating point is supported to avoid one extra
conversion, also clean up the driver itself a bit.
2011-01-15 20:37:42 +01:00
Themaister 6b21e6b8a3 Clean up audio a bit. Less use of nasty statics and VLAs. 2011-01-14 15:34:38 +01:00
Themaister 2a4995c21f Starting Win32 support. 2011-01-07 17:59:53 +01:00
Themaister a5bbc68a84 Add SDL audio driver. 2011-01-07 15:50:16 +01:00
Themaister 86e080476a Fixes here and there... 2011-01-06 20:01:32 +01:00
Themaister eca7a59dd1 change an #ifdef to HAVE_SDL 2011-01-06 18:38:02 +01:00
Themaister 4cc3f7aaab Start moving over to SDL rather than GLFW to minimize dependencies. 2011-01-06 18:34:11 +01:00
Themaister b47f58c338 Add Jack audio driver. 2011-01-01 03:53:30 +01:00
Themaister 38616ee794 More cleanup... 2010-12-30 03:02:30 +01:00
Themaister 8e1b1e8c05 Logs config file with verbose options. 2010-12-30 01:38:20 +01:00
Themaister 75d8781854 Add stuff to detect filters. 2010-12-30 01:33:40 +01:00
Themaister 61a70bba6c Error message when wrong driver. 2010-12-29 20:56:56 +01:00
Themaister 869d839eee Should work nicely. 2010-12-29 20:50:50 +01:00
Themaister fc126942e9 Fixes... Add driver ident and remove some config.h deps. 2010-12-29 20:05:57 +01:00
Themaister 80d98f765e More fixes 2010-12-29 19:43:17 +01:00
Themaister 2da6a4e2cc More work on configs. 2010-12-29 19:18:37 +01:00