Commit c84543a3 authored by Linshizhi's avatar Linshizhi

Bug fix: resourcer fetch time too late.

parent 1a5f2384
...@@ -415,16 +415,16 @@ BUILTIN(AddAudioURL) { ...@@ -415,16 +415,16 @@ BUILTIN(AddAudioURL) {
} }
} }
bool isLoop_bool = isLoop_ == 1;
addInputFileAE(audioEffecter, outpath.c_str(), volume_, strong_end_time_, start_time_,
end_time_, delay_, duration_, fade_out_duration_, isLoop_bool);
if (resourcer == NULL) { if (resourcer == NULL) {
resourcer = getResourcer(); resourcer = getResourcer();
} }
int errorCode = fetchRe(resourcer, url_cppstr.c_str(), outpath.c_str()); int errorCode = fetchRe(resourcer, url_cppstr.c_str(), outpath.c_str());
if (errorCode == 200) {
bool isLoop_bool = isLoop_ == 1;
addInputFileAE(audioEffecter, outpath.c_str(), volume_, strong_end_time_, start_time_,
end_time_, delay_, duration_, fade_out_duration_, isLoop_bool);
}
return *isolate->factory()->NewNumberFromInt(errorCode); return *isolate->factory()->NewNumberFromInt(errorCode);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment