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. |
||
---|---|---|
jni | ||
res | ||
src/com/apportable/openal_soft | ||
AndroidManifest.xml | ||
COPYING | ||
README | ||
ant.properties | ||
build.xml | ||
local.properties | ||
proguard.cfg | ||
project.properties |
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