We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hey there, I noticed a few areas where audio resource cleanup could be improved:
mediaRecorder.stop()
source.stop()
audioContext.close()
URL.createObjectURL()
useEffect(() => { return () => { if (mediaRecorder) { mediaRecorder.stream.getTracks().forEach(track => track.stop()); } }; }, [mediaRecorder, mediaRecorderInitialized]);
URL.revokeObjectURL(audioUrl);
Would these additions be helpful for preventing potential memory leaks?
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Audio Resource Management Enhancement
Hey there, I noticed a few areas where audio resource cleanup could be improved:
Current Implementation (CMIIW)
mediaRecorder.stop()
is called when stopping recordingsource.stop()
andaudioContext.close()
URL.createObjectURL()
is used for audio blobSuggested Improvements :
Would these additions be helpful for preventing potential memory leaks?
Labels
The text was updated successfully, but these errors were encountered: