Hi,
We are developing a game with cocos2dx using FMOD studio library on both Android and iOS platforms. While on iOS everything works fine, on Android played sounds are stuttering ( some are playing better but not fine ). FMOD initialization and play calls have the same flow and structures on both platforms.
Is there a tutorial or guide that explains how to implement FMOD studio in a cocos2dx framework for Android?
Initialization code below:
protected void onCreate(Bundle savedInstanceState){
super.onCreate(savedInstanceState);
FMODAudioDevice.init(this);
}
public Cocos2dxGLSurfaceView onCreateView() {
Cocos2dxGLSurfaceView glSurfaceView = new Cocos2dxGLSurfaceView(this);
// ThreesClone should create stencil buffer
glSurfaceView.setEGLConfigChooser(5, 6, 5, 0, 16, 8);
return glSurfaceView;
}
static {
// Try debug libraries...
try { System.loadLibrary("fmodD");
System.loadLibrary("fmodstudioD"); }
catch (UnsatisfiedLinkError e) { }
// Try logging libraries...
try { System.loadLibrary("fmodL");
System.loadLibrary("fmodstudioL"); }
catch (UnsatisfiedLinkError e) { }
// Try release libraries...
try { System.loadLibrary("fmod");
System.loadLibrary("fmodstudio"); }
catch (UnsatisfiedLinkError e) { }
//System.loadLibrary("stlport_shared");
System.loadLibrary("cocos2dcpp");
}