Open speggos opened 6 years ago
recordStart = () => {
this.Listener = this.Recorder.addRecordingEventListener((data) => {
console.log('New data!', data.length)
});
Recording.start()
}
recordStop = () => {
this.listener.remove();
}
I fixed it with the code. (you should remove this.listener from inside of componentDidMount )
Fixed this by playing audio using a different method ('MultiRoute'), do not know what was causing the issue on a low level, must be something to do with resources not being released.
This can be closed, thank you!
Hello, first of all thank you for the wonderful library! I am making an app which needs DSP and this has been such a life saver.
I'm having an issue with the recorder. Here is a high level of what the app is should be doing:
In step 3, I am getting nothing sent to the recorder's event listener (specifically, one empty buffer ( [] ) upon starting recording, and another upon ending recording)
Here is my code:
Starting Recording:
Stopping recording:
Playing the sound (happens after stopRecording() )
The first run of recording returns buffers as expected. The sound plays as expected. However, when I try to record audio again, here is my console:
Start recording New data!, 0 ...nothing
Stop recording New data!, 0
This is fully functional on android, and I'm not sure what to do on this issue. Any help is appreciated :)