From 5a8a64de5a8c3df1c1de4331af45dc606f3d9b16 Mon Sep 17 00:00:00 2001 From: Vektor Date: Mon, 2 Oct 2023 10:16:41 +0200 Subject: [PATCH] update audio & sdk --- client/src/bindings/Audio.cpp | 3 ++- shared/deps/cpp-sdk | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/client/src/bindings/Audio.cpp b/client/src/bindings/Audio.cpp index 43ed6bb3..2383439c 100644 --- a/client/src/bindings/Audio.cpp +++ b/client/src/bindings/Audio.cpp @@ -17,9 +17,10 @@ static void Constructor(const v8::FunctionCallbackInfo& 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"); } diff --git a/shared/deps/cpp-sdk b/shared/deps/cpp-sdk index 412a690c..caa4d57c 160000 --- a/shared/deps/cpp-sdk +++ b/shared/deps/cpp-sdk @@ -1 +1 @@ -Subproject commit 412a690c6114a806b6ca136c9c102fbae8ae451e +Subproject commit caa4d57c6fc8fab24c7ed12338b69401b9c7e8b3