Skip to content

Commit

Permalink
Fixed Audio constructor argument count
Browse files Browse the repository at this point in the history
  • Loading branch information
zziger authored Oct 5, 2023
1 parent 1de7c1d commit f24c4d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/src/bindings/Audio.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ static void Constructor(const v8::FunctionCallbackInfo<v8::Value>& info)
{
V8_GET_ISOLATE_CONTEXT_RESOURCE();
V8_CHECK_CONSTRUCTOR();
V8_CHECK_ARGS_LEN_MIN_MAX(1, 3);
V8_CHECK_ARGS_LEN_MIN_MAX(1, 4);

V8_ARG_TO_STRING(1, source);
V8_ARG_TO_NUMBER_OPT(2, volume, 1.f);
Expand Down

0 comments on commit f24c4d2

Please sign in to comment.