(Android/OpenSL) Bigger audio buffers - bigger latency/longer

delay in audio, but no audio breakup - also applied -O3 and -funroll-loops
for Android Makefile - seems to help
This commit is contained in:
twinaphex 2012-10-30 05:25:14 +01:00
parent 033e94acfd
commit fb25f31598
3 changed files with 6 additions and 5 deletions

View File

@ -64,7 +64,7 @@ LOCAL_SRC_FILES += $(RARCH_PATH)/benchmark.c
LOCAL_CFLAGS += -DPERF_TEST
endif
LOCAL_CFLAGS += -DANDROID -DHAVE_DYNAMIC -DHAVE_OPENGL -DHAVE_OPENGLES -DHAVE_OPENGLES2 -DGLSL_DEBUG -DHAVE_GLSL -DHAVE_ZLIB -DINLINE=inline -DLSB_FIRST -D__LIBRETRO__ -DHAVE_CONFIGFILE=1 -DPACKAGE_VERSION=\"$(RARCH_VERSION)\" -std=gnu99
LOCAL_CFLAGS += -O3 -funroll-loops -DANDROID -DHAVE_DYNAMIC -DHAVE_OPENGL -DHAVE_OPENGLES -DHAVE_OPENGLES2 -DGLSL_DEBUG -DHAVE_GLSL -DHAVE_ZLIB -DINLINE=inline -DLSB_FIRST -D__LIBRETRO__ -DHAVE_CONFIGFILE=1 -DPACKAGE_VERSION=\"$(RARCH_VERSION)\" -std=gnu99
LOCAL_LDLIBS := -L$(SYSROOT)/usr/lib -landroid -lEGL -lGLESv2 -llog -ldl -lz

View File

@ -259,14 +259,15 @@ static int32_t engine_handle_input(struct android_app* app, AInputEvent* event)
bool do_keyrelease = false;
bool pressed_left, pressed_right, pressed_up, pressed_down;
float x, y;
int action, keycode, source, type;
int action, keycode, type;
action = AKEY_EVENT_NO_ACTION;
type = AInputEvent_getType(event);
source = AInputEvent_getSource(event);
keycode = AKeyEvent_getKeyCode(event);
#ifdef RARCH_INPUT_DEBUG
int source = AInputEvent_getSource(event);
switch(source)
{
case AINPUT_SOURCE_DPAD:

View File

@ -35,8 +35,8 @@
#define SLPlayItf_SetPlayState(a, ...) ((*(a))->SetPlayState(a, __VA_ARGS__))
// TODO: Are these sane?
#define BUFFER_SIZE 2048
#define NUM_BUFFERS 16
#define BUFFER_SIZE 4096
#define NUM_BUFFERS 32
typedef struct sl
{