mirror of
https://github.com/u0u0/Quick-Cocos2dx-Community.git
synced 2026-06-09 11:22:27 +08:00
audio测试异常处理。
This commit is contained in:
@@ -55,7 +55,9 @@ end
|
||||
|
||||
--------------- buffer -------------------
|
||||
function audio.loadFile(path, callback)
|
||||
if not audio._buffers[path] then
|
||||
if audio._buffers[path] then
|
||||
callback(path, true)
|
||||
else
|
||||
assert(callback, "ONLY support asyn load file, please set callback!")
|
||||
Rapid2D_CAudio.newBuffer(path, function(buffID)
|
||||
if buffID then
|
||||
|
||||
Reference in New Issue
Block a user