Skip to content
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

openStream crash my microphone on every other application on the machine #32

Open
juanch0x opened this issue Aug 16, 2022 · 0 comments
Open

Comments

@juanch0x
Copy link

juanch0x commented Aug 16, 2022

Hi, I'm trying to use the openStream api like the following

const st = rtAudio.openStream(
  undefined,
  {
    deviceId: inputName || rtAudio.getDefaultInputDevice(), // Input device id (Get all devices using `getDevices`)
    nChannels: 1, // Number of channels
    firstChannel: 0, // First channel index on device (default = 0).
  },
  RtAudioFormat.RTAUDIO_SINT16, // PCM Format - Signed 16-bit integer
  48000, // Sampling rate is 48kHz
  1920, // Frame size is 1920 (40ms)
  "MyStream", // The name of the stream (used for JACK Api)
  (pcm) => {
    //logic to detect if the person is with voice active
  },
  () => {}
);
rtAudio.start();

It works as expected, and I can get the data that I need from the inputCallback without issues.

The thing is, when i execute rtAudio.start() every other application stop detecting the audio input from the computer until until I restart that application.

It's any workaround for this? Am I doing something wrong?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant