Skip to content

Commit

Permalink
fix: changed number of host function arguments
Browse files Browse the repository at this point in the history
Maciej Makowski committed Jul 22, 2024
1 parent 4094169 commit 5b0866e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cpp/OscillatorNode/OscillatorNodeHostObject.cpp
Original file line number Diff line number Diff line change
@@ -22,7 +22,7 @@ namespace audiocontext

if (propName == "start")
{
return jsi::Function::createFromHostFunction(runtime, propNameId, 0, [this](jsi::Runtime &rt, const jsi::Value &thisValue, const jsi::Value *args, size_t count) -> jsi::Value
return jsi::Function::createFromHostFunction(runtime, propNameId, 1, [this](jsi::Runtime &rt, const jsi::Value &thisValue, const jsi::Value *args, size_t count) -> jsi::Value
{
auto time = args[0].getNumber();
wrapper_->start(time);
@@ -32,7 +32,7 @@ namespace audiocontext

if (propName == "stop")
{
return jsi::Function::createFromHostFunction(runtime, propNameId, 0, [this](jsi::Runtime &rt, const jsi::Value &thisValue, const jsi::Value *args, size_t count) -> jsi::Value
return jsi::Function::createFromHostFunction(runtime, propNameId, 1, [this](jsi::Runtime &rt, const jsi::Value &thisValue, const jsi::Value *args, size_t count) -> jsi::Value
{
auto time = args[0].getNumber();
wrapper_->stop(time);

0 comments on commit 5b0866e

Please sign in to comment.