[IOS] onCurrentRecordingWaveformData returns currentDecibel with delay
onCurrentRecordingWaveformData returns incorrect values.
I speak fast to test and say "HEY" and the values are like this
LOG 0.012771714478731155
LOG 0.012771714478731155
LOG 0.012771714478731155
LOG 0.012771714478731155
LOG 0.012771714478731155
LOG 0.012771714478731155
LOG 0.012771714478731155
LOG 0.012771714478731155
LOG 0.012771714478731155
LOG 0.012771714478731155
LOG 0.01845887303352356
LOG 0.6516658663749695
LOG 0.6516658663749695
LOG 0.6516658663749695
LOG 0.6516658663749695
LOG 0.6516658663749695
LOG 0.6516658663749695
LOG 0.6516658663749695
LOG 0.6516658663749695
LOG 0.6516658663749695
LOG 0.6516658663749695
LOG 0.6516658663749695
LOG 0.6516658663749695
LOG 0.6516658663749695
LOG 0.6516658663749695
LOG 0.6516658663749695
LOG 0.6516658663749695
LOG 0.6516658663749695
LOG 0.6516658663749695
LOG 0.6115133166313171
LOG 0.5385453104972839
LOG 0.47425442934036255
this is the output visualization of saying just "HEY"
But on Android the output looks like this
As you can see values are jumping from 0.01 to 0.6 which is fine, but returns to 0 slowly. I have no idea what can cause this, but it works fine on Android.
UPDATE: tried to remove linear function in native side, but did not work
@Bayramito how do you access native events like onCurrentRecordingWaveformData?
@Bayramito how do you access native events like onCurrentRecordingWaveformData?
there are some hooks provided, if you check the core files. useAudioRecorder and useAudioPlayer via these...
https://github.com/SimformSolutionsPvtLtd/react-native-audio-waveform/tree/master/src/hooks