File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed
packages/react-native-audio-api/common/cpp/test/src/dsp Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -103,8 +103,14 @@ TEST_F(ResamplerTest, UpSamplerProcess) {
103103 auto outputArray = std::make_shared<AudioArray>(8 );
104104
105105 // update history buffer
106- memmove (stateBuffer->getData (), stateBuffer->getData () + inputArray->getSize (), KERNEL_SIZE * sizeof (float ));
107- memcpy (stateBuffer->getData () + KERNEL_SIZE, inputArray->getData (), inputArray->getSize () * sizeof (float ));
106+ memmove (
107+ stateBuffer->getData (),
108+ stateBuffer->getData () + inputArray->getSize (),
109+ KERNEL_SIZE * sizeof (float ));
110+ memcpy (
111+ stateBuffer->getData () + KERNEL_SIZE,
112+ inputArray->getData (),
113+ inputArray->getSize () * sizeof (float ));
108114
109115 upSampler->process (inputArray, outputArray);
110116
You can’t perform that action at this time.
0 commit comments