Skip to content

Commit e99095d

Browse files
authored
Update AudioEngine.cpp
Removed unused code.
1 parent cbb42f9 commit e99095d

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

cocos/audio/AudioEngine.cpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -210,11 +210,6 @@ int AudioEngine::play2d(const std::string& filePath, bool loop, float volume, co
210210
profileHelper = &_audioPathProfileHelperMap[profile->name];
211211
profileHelper->profile = *profile;
212212
}
213-
214-
// if (_audioIDInfoMap.size() >= _maxInstances) {
215-
// log("Fail to play %s cause by limited max instance of AudioEngine",filePath.c_str());
216-
// break;
217-
// }
218213

219214
if (_audioIDInfoMap.size() >= _maxInstances) {
220215
double oldestTimestamp = std::numeric_limits<double>::max();

0 commit comments

Comments
 (0)