diff --git a/cocos/audio/android/jni/cddandroidAndroidJavaEngine.cpp b/cocos/audio/android/jni/cddandroidAndroidJavaEngine.cpp index a6521f4064..80e2687b7d 100644 --- a/cocos/audio/android/jni/cddandroidAndroidJavaEngine.cpp +++ b/cocos/audio/android/jni/cddandroidAndroidJavaEngine.cpp @@ -72,7 +72,12 @@ AndroidJavaEngine::AndroidJavaEngine() } } -AndroidJavaEngine::~AndroidJavaEngine() { +AndroidJavaEngine::~AndroidJavaEngine() +{ + if (_implementBaseOnAudioEngine) + { + stopAllEffects(); + } cocos2d::JniMethodInfo methodInfo; if (!getJNIStaticMethodInfo(methodInfo, "end", "()V")) {