mirror of https://github.com/axmolengine/axmol.git
Use Java audio for all devices while compatibility is tested.
This commit is contained in:
parent
2d7d918fa5
commit
ca8bc2ca4a
|
@ -33,11 +33,12 @@ namespace CocosDenshion {
|
||||||
|
|
||||||
SimpleAudioEngine* SimpleAudioEngine::sharedEngine() {
|
SimpleAudioEngine* SimpleAudioEngine::sharedEngine() {
|
||||||
if (! s_pEngine) {
|
if (! s_pEngine) {
|
||||||
if (CocosDenshion::android::is_buggy_device()) {
|
// if (CocosDenshion::android::is_buggy_device()) {
|
||||||
|
// use the Java Audio implementation until compatibility is confirmed
|
||||||
s_pEngine = new CocosDenshion::android::AndroidJavaEngine();
|
s_pEngine = new CocosDenshion::android::AndroidJavaEngine();
|
||||||
} else {
|
// } else {
|
||||||
s_pEngine = new CocosDenshion::android::OpenSLEngine();
|
// s_pEngine = new CocosDenshion::android::OpenSLEngine();
|
||||||
}
|
// }
|
||||||
}
|
}
|
||||||
|
|
||||||
return s_pEngine;
|
return s_pEngine;
|
||||||
|
|
Loading…
Reference in New Issue