Skip to content

Commit

Permalink
update audio & sdk
Browse files Browse the repository at this point in the history
  • Loading branch information
martonp96 committed Oct 2, 2023
1 parent c188566 commit 5a8a64d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion client/src/bindings/Audio.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,10 @@ static void Constructor(const v8::FunctionCallbackInfo<v8::Value>& info)
V8_ARG_TO_STRING(1, source);
V8_ARG_TO_NUMBER_OPT(2, volume, 1.f);
V8_ARG_TO_BOOLEAN_OPT(3, radio, false);
V8_ARG_TO_BOOLEAN_OPT(4, clearCache, true);

std::string origin = V8Helpers::GetCurrentSourceOrigin(isolate);
auto audio = alt::ICore::Instance().CreateAudio(source, volume, radio, origin, resource->GetResource());
auto audio = alt::ICore::Instance().CreateAudio(source, volume, radio, clearCache, origin, resource->GetResource());
V8_BIND_BASE_OBJECT(audio, "Failed to create Audio");
}

Expand Down
2 changes: 1 addition & 1 deletion shared/deps/cpp-sdk
Submodule cpp-sdk updated 1 files
+1 −1 ICore.h

0 comments on commit 5a8a64d

Please sign in to comment.