Commit Graph

60 Commits

Author SHA1 Message Date
Stefanos Kornilios Mitsis Poiitidis 58d4a55696 build: fix makefiles 2015-07-25 13:19:38 +02:00
Stefanos Kornilios Mitsis Poiitidis 9cf9bacd13 build: Refactor HOST_NO_REC everywhere 2015-07-25 13:19:26 +02:00
Jan Holthuis 1c1e779500 Added Android audio backend
This *should* add the Android audio backend. I do not have any idea how
to do this properly, but I figured that this might work for the moment.
There's probably a lot of testing required for this to work.
2015-06-27 20:44:53 +02:00
Jan Holthuis e3f1784a0f Implement audio backend system
This makes it possible to have multiple audio backends compiled into
reicast (e.g. ALSA & OSS on Linux). These can then selected by the user
via a config option ("backend" iin the "audio" section). It *should*
also be possible to reduce the number of platform-specific ifdefs with this
approach.

Audio backends need to define a struct (audiobackend_t) that holds a
pointer to it's init, push and term function and also a slug and a name
as string. They then need to pass a pointer to this struct to
RegisterAudioBackend() before InitAudio() is called.

For now, I defined a function (RegisterAllAudioBackends) that get's
called exactly once (i.e. upon first call of InitAudio()), where
we can put ifdef'd RegisterAudioBackend() calls into for each backend
that reicast supports.

Please note that this commit just implements the basic audio backend
system - no backends have been ported to the new API yet. For the meantime,
reicast will run without any audio support accross all systems.
2015-06-27 20:41:49 +02:00
Jan Holthuis 35968c8291 Rename os_Push() to PushAudio() for consistency 2015-06-27 20:41:05 +02:00
Stefanos Kornilios Mitsis Poiitidis a2ac4015d1 Android/Makefile: Fix build by avoiding var-leakage
Apparently include $(CLEAR_VARS) doesn't quite do what one expects
2015-05-16 00:31:25 +02:00
Stefanos Kornilios Mitsis Poiitidis 30709c948e Android makefile: C doesn't support -fvisibility-inlines-hidden 2015-05-15 23:35:25 +02:00
Stefanos Kornilios Mitsis Poiitidis cf473a14a4 x86 jit: fix android 2015-05-15 23:33:47 +02:00
Stefanos Kornilios Mitsis Poiitidis 014d739495 Update for ndk-10d, improved build options 2015-03-29 06:02:24 +02:00
TwistedUmbrella 6cf0d1acda Add a settings toggle to configure reios 2015-03-14 11:51:30 -04:00
TwistedUmbrella 612928fedf Add resources for error dialog, Disable test 2014-11-21 12:24:58 -05:00
Stefanos Kornilios Mitsis Poiitidis c2d1fbfdc2 WIP to get an alert dialog show
- new String() fails, somewhere deep on the android run-time, with no exception or some kind of logged error on my N4. WHY?
- The android debugger is a huge PITA.
- Eclipse is best left unused
2014-11-10 13:34:59 +01:00
Stefanos Kornilios Mitsis Poiitidis d1aa96d3e1 Improve error handling
Add coreMessage, die to EmuThread, propagate msgboxf to coreMessage
2014-11-10 05:28:52 +01:00
Stefanos Kornilios Mitsis Poiitidis 3ba9170ec8 Add diagonials 2014-07-26 11:53:18 +03:00
Stefanos Kornilios Mitsis Poiitidis a05760260e Move debugbreak to os module 2014-07-24 16:54:04 +03:00
Stefanos Kornilios Mitsis Poiitidis ee2a1b7d20 Split CFLAGS/CXXFLAGS on core.mk, warning fixes 2014-05-12 20:53:43 +03:00
TwistedUmbrella 64e50d0dab Add the preliminary menu option to swap a utopia disk 2014-05-08 00:02:42 -04:00
Stefanos Kornilios Mitsis Poiitidis 5fee692c31 WEBUI for android 2014-04-25 05:59:53 +03:00
TwistedUmbrella ea80157d2e NativeActivity and navigational stability improvements
Improve shutdown when errors occur to prevent inability to restart
Reduce the context for launching activities to local application
Error checking when launching the native touchpad interface
2014-04-05 13:25:42 -04:00
TwistedUmbrella 014daafa2a Fix return intent from games, Fix touchscreen in native mode 2014-04-04 01:12:30 -04:00
Stefanos Kornilios Mitsis Poiitidis ebe56d6778 Add mips support (woohoo makefiles are a mess nao) 2014-03-05 12:24:03 +02:00
TwistedUmbrella 6a757bb43e Fix compiling the secondary library, Begin prefs integration 2014-03-04 08:48:41 -05:00
TwistedUmbrella 3954d719f5 Streamline the build process to prevent possibility for errors 2014-03-04 03:32:12 -05:00
Stefanos Kornilios Mitsis Poiitidis 78ad0d6044 Merge branch 'master' of https://github.com/reicast/reicast-emulator 2014-03-03 14:18:13 +02:00
Stefanos Kornilios Mitsis Poiitidis ac2501549f Initial support for android-x86 (no idea if this actually works)
This is ugly, done via HOST_NO_REC, NOT_ARM. Only if I had merged the clean-makefiles work before rls... Oh well.
2014-03-03 14:06:00 +02:00
TwistedUmbrella d6369f9d04 Reverse the notation about commenting the NDK_VERSION 2014-03-02 23:54:16 -05:00
TwistedUmbrella 4c034740ea Reference strings over hardcoded text, More documentation 2014-03-02 22:49:31 -05:00
TwistedUmbrella 2a150ef61c Refactor @ptitSeb PANDORA: Options and GUI - NoSound 2014-03-01 07:38:54 -05:00
TwistedUmbrella ca3de641e2 Add a shared uid package that enables and disables debug 2014-03-01 02:09:00 -05:00
TwistedUmbrella 839ddd0c40 Refactor the Dpad Joystick toggle for purposely invalid input 2014-02-28 05:51:08 -05:00
TwistedUmbrella a75307240d Begin merging in NativeActive and compatibility fallback - r7 2014-02-26 22:26:33 -05:00
Bryan Barnes 0a45f17839 fixed editvjoy crash 2014-02-22 18:19:17 -05:00
Bryan Barnes 31bd0f5742 fixed the bios crash plague, it was a jni issue with the vmu lcd. the way we cache jnienv is messy/lucky. 2014-02-22 11:30:03 -05:00
Bryan Barnes 52199df953 vmu :)
Conflicts:
	shell/android/jni/src/Android.cpp
	shell/android/src/com/reicast/emulator/emu/GL2JNIActivity.java
	shell/android/src/com/reicast/emulator/emu/JNIdc.java
2014-02-13 02:17:13 -05:00
TwistedUmbrella eb1772ec2c Realign the native interface with the Java app counterpart 2014-02-11 23:38:46 -05:00
TwistedUmbrella 7f095cdb2d Render configuration file obsolete to prevent load corruption 2014-02-09 22:16:09 -05:00
TwistedUmbrella 5511bee9ef Sometimes you have to break some eggs to find a chicken 2014-02-09 21:33:31 -05:00
TwistedUmbrella af3e064269 Convert Android config to GUI, stop wasting CPU on files 2014-02-09 21:30:42 -05:00
TwistedUmbrella 7cd08c13ed Add runtime configuration for toggling the LimitPFS option
There ya go @hooby3dfx. I hope it’s everything you dreamed it would be
;)
2014-02-09 11:26:04 -05:00
TwistedUmbrella 83b94874a3 Add widescreen emu toggle, Get current config on app load 2014-02-08 21:43:41 -05:00
TwistedUmbrella 5ca3b4e3dc Theoretically this will add live control over frame skipping 2014-02-08 21:43:32 -05:00
Bryan Barnes 76852783a7 its verking!
tested in bios only
2014-02-06 00:02:53 -05:00
Bryan Barnes 96ffc3a524 mic notes, wip vmu swap 2014-02-05 01:00:09 -05:00
Stefanos Kornilios Mitsis Poiitidis 1d9ec43b22 Merge pull request #109 from hooby3dfx/microphone_support
Microphone support. YARLY.
2014-02-02 19:00:37 -08:00
Bryan Barnes f571b187b0 Addressed review points
-cleanup vmu that gets replaced by the mic
-got rid of confusing old commented code
-stopped big memory leak if mic data was not getting read but it was
recording
2014-02-02 21:40:18 -05:00
Bryan Barnes 3e33efa3ca learning the hard way
root cause found (i think). lesson: java functions called via jni dont
handle exceptions/tell you what happens when they crash.
2014-02-01 22:36:47 -05:00
TwistedUmbrella 8a9a5af00d Import mod of Jeremy Feinstein's SlidingMenu, EGL Mods
Clean up the menu or at least reduce the number of shells

Build native library against the same API base as shell app

Update Khronos source to newest stable, Reference EGL14

Add margins, Restore lost identifiers, Update tested devices

Adjust drawer menu handle to prevent unintentional launch

Revise EGL handling to check multiple contexts to configure

Update README to include information about translating

Add native library handling to the debug, Enable log reading

Adjust drawer menu touch area, Fix L / R assignment calls

Remove some merge junk from trying to resolve git issues
2014-02-01 18:00:14 -05:00
Bryan Barnes 2403d13440 umm
ok its one of those things where the logging makes it work!
not sure whats up, but without the additional logging it crashes.
2014-02-01 14:05:09 -05:00
Bryan Barnes 208bcc0d79 its verking!
figured out issue, made mic setup simpler
2014-02-01 13:52:36 -05:00
Bryan Barnes 5b9dbd9fa3 This is ready to go
-Added config to input fragment
-Reduced logging
-Init the mic at the right time during startup so that port 2 either
gets vmu or mic
-Has not been tested on device without mic
-Needs more testing in games
2014-02-01 10:44:06 -05:00