Go to file
Eric Wing c5984e2280 Lowered bufferCount in OpenSL ES implementation from 8 to 4 because the base case latency of playing a single sound was terrible/worse than the Audiotrack version (which already contained my latency tweaks from the Martins Mozelko branch).
Lowering this value may negatively affect the mixing throughput for lots of sources. But this is a balancing act to not make the latency worse than the Audiotrack backend.

I tested on Kindle Fire (2.3), Nexus 7 (4.1), Motorola Xoom (3.?), Galaxy SII (2.3.4). In all cases, the latency seems to be about on par with the Audiotrack backend. Somewhat more subjective, the OpenSL ES backend with this change sounded a little cleaner to me.

I picked 4 somewhat arbitrarily. Being burned by non-power-of-two things before, I liked going from 4 to 8 and the latency improved to where I wanted it.

The latency is not really noticable on the Nexus 7 running 4.1 regardless of this change. This suggests a future fix dynamically change this constant back to 8 if running on 4.1+ if the Apportable values were well picked/tested to begin with.
2013-01-08 11:27:16 -08:00
jni Lowered bufferCount in OpenSL ES implementation from 8 to 4 because the base case latency of playing a single sound was terrible/worse than the Audiotrack version (which already contained my latency tweaks from the Martins Mozelko branch). 2013-01-08 11:27:16 -08:00
res Android .so for OpenAL 2011-12-16 18:14:00 -08:00
src/com/apportable/openal_soft Android .so for OpenAL 2011-12-16 18:14:00 -08:00
AndroidManifest.xml Android .so for OpenAL 2011-12-16 18:14:00 -08:00
COPYING Add LGPLv3 license 2011-12-20 13:20:51 -08:00
README first commit 2011-12-16 18:10:45 -08:00
ant.properties Linux and Android-SDK-r16 build 2012-03-02 10:53:04 -08:00
build.xml Linux and Android-SDK-r16 build 2012-03-02 10:53:04 -08:00
local.properties Linux and Android-SDK-r16 build 2012-03-02 10:53:04 -08:00
proguard.cfg Android .so for OpenAL 2011-12-16 18:14:00 -08:00
project.properties Linux and Android-SDK-r16 build 2012-03-02 10:53:04 -08:00

README

This is an OpenAL-soft shared library for Android.

Features:
 * builds for Froyo or later
 * builds as a shared library
 * back-end for AudioTrack or OpenSLES
 * Fixed-point (default) or floating-point math for mixing

Created with:
android create project --target android-8 --name openal_soft --path openal-soft --activity openal_soft --package com.apportable.openal_soft 

Fork of OpenAL-soft in jni/OpenAL

Build with:
cd jni
ndk-build