mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
Add stub that detects the OS version
This commit is contained in:
parent
3f40c740e2
commit
95f09bf393
1 changed files with 5 additions and 0 deletions
|
@ -27,6 +27,7 @@ import android.media.AudioManager;
|
|||
import android.media.AudioTrack;
|
||||
import android.net.Uri;
|
||||
import android.opengl.GLSurfaceView;
|
||||
import android.os.Build;
|
||||
import android.os.Bundle;
|
||||
import android.os.Environment;
|
||||
import android.util.Log;
|
||||
|
@ -332,6 +333,10 @@ public class NativeActivity extends Activity {
|
|||
mGLSurfaceView = new NativeGLView(this);
|
||||
mGLSurfaceView.setRenderer(new NativeRenderer(this));
|
||||
setContentView(mGLSurfaceView);
|
||||
if (Build.VERSION.SDK_INT >= 9) {
|
||||
// Native OpenSL is available. Let's not use the Java player in the future.
|
||||
// TODO: code for that.
|
||||
}
|
||||
audioPlayer = new NativeAudioPlayer();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue