Skip to content

Commit dcc8de5

Browse files
committed
Merge branch 'main' into feat/audio-param-connection-from-node
2 parents 2037c54 + 4dc0f2a commit dcc8de5

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

packages/react-native-audio-api/common/cpp/audioapi/core/sources/OscillatorNode.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,7 @@ void OscillatorNode::processNode(
7070
for (size_t i = startOffset; i < offsetLength; i += 1) {
7171
auto detuneRatio = std::pow(
7272
2.0f, detuneParamValues->getChannel(0)->getData()[i] / 1200.0f);
73-
auto detunedFrequency =
74-
round(frequencyParamValues->getChannel(0)->getData()[i] * detuneRatio);
73+
auto detunedFrequency = frequencyParamValues->getChannel(0)->getData()[i] * detuneRatio;
7574
auto phaseIncrement = detunedFrequency * periodicWave_->getScale();
7675

7776
float sample =

packages/react-native-audio-api/common/cpp/audioapi/jsi/JsiPromise.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,7 @@ jsi::Value PromiseVendor::createPromise(
4646
const std::string &errorMessage) -> void {
4747
callInvoker->invokeAsync([reject, &runtime, errorMessage]() -> void {
4848
auto error = jsi::JSError(runtime, errorMessage);
49-
auto errorShared = std::make_shared<jsi::JSError>(error);
50-
reject->call(runtime, errorShared->value());
49+
reject->call(runtime, error.value());
5150
});
5251
};
5352

0 commit comments

Comments
 (0)