mirror of
https://github.com/cocos/cocos4.git
synced 2026-11-20 15:42:39 +08:00
Sync with cocos2d-x v3 branch ddb4dc8 commit.
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
/****************************************************************************
|
||||
Copyright (c) 2010-2012 cocos2d-x.org
|
||||
Copyright (c) 2013-2016 Chukong Technologies Inc.
|
||||
Copyright (c) 2013-2017 Chukong Technologies Inc.
|
||||
|
||||
http://www.cocos2d-x.org
|
||||
|
||||
@@ -271,6 +271,10 @@ void AndroidJavaEngine::preloadEffect(const char* filePath)
|
||||
std::string fullPath = CocosDenshion::android::getFullPathWithoutAssetsPrefix(filePath);
|
||||
JniHelper::callStaticVoidMethod(helperClassName, "preloadEffect", fullPath);
|
||||
}
|
||||
else
|
||||
{
|
||||
AudioEngine::preload(filePath);
|
||||
}
|
||||
}
|
||||
|
||||
void AndroidJavaEngine::unloadEffect(const char* filePath)
|
||||
@@ -280,4 +284,8 @@ void AndroidJavaEngine::unloadEffect(const char* filePath)
|
||||
std::string fullPath = CocosDenshion::android::getFullPathWithoutAssetsPrefix(filePath);
|
||||
JniHelper::callStaticVoidMethod(helperClassName, "unloadEffect", fullPath);
|
||||
}
|
||||
else
|
||||
{
|
||||
AudioEngine::uncache(filePath);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user