New issue
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
RtAudio input stops after ~7 seconds, when output is not opened #28
Comments
The problem also occurs on Node.js v16.15.1. |
I've found that this problem doesn't occur as long as I have an output running too. It seems Using |
I have almost the same exact same issue on Linux with PulseAudio. Based on your workaround I implemented a very dumb way of dealing with it after some experimentation. // Start the stream
rtAudio.start();
setTimeout(() => {
try {
rtAudio.write(null);
} catch {
console.log("RTAudio fixed, enjoy your stream.");
}
}) Calling it once without |
I found out that it's not really related with the |
Actually, even this worked for me:
|
It's a Schrödinger's stream: if nobody is measuring if it's open or not, it declines to collapse its superposition into a concrete state of existence 🤣 |
I'm having trouble with the basic audio input example. The audio input callback stops being called after about 7 seconds. Some notes:
Any thoughts as to the cause of this and how it can be solved?
The text was updated successfully, but these errors were encountered: