File tree Expand file tree Collapse file tree 2 files changed +2
-4
lines changed
packages/react-native-audio-api/common/cpp/audioapi Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Original file line number Diff line number Diff 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 =
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments