摘要:openal soft
source code
https://github.com/AerialX/openal-soft-android
binary file
https://github.com/AerialX/openal-soft-android/downloads
so now we could do the things at windows and ios and ardroid...
ensure u have up load libopenal file to device where copy it(libopenal) to $(ProjectDirectory)/lib/armeabi-v7a directory...
and link libopenal.a so well
BUT!!!!
if u are suing NativeActive Android.c cannot fetch JINE so...
http://pielot.org/2010/12/14/openal-on-android/#comment-1160
change GetEnv at Android.c
to
if this one still not work...
go to android.c
find out
static JavaeVM*javaVM = 0;
set this one
as
extern JavaeVM*javaVM ;
then set this variable as well at main
static JNIEnv* GetEnv()
{
JNIEnv* env = NULL;
if (javaVM) (*javaVM)->GetEnv(javaVM, (void**)&env, JNI_VERSION_1_2);
(*javaVM)->AttachCurrentThread(javaVM, &env, NULL);
return env;
}