Skip to content

RtAudio input stops after ~7 seconds, when output is not opened #28

@bradisbell

Description

@bradisbell

I'm having trouble with the basic audio input example. The audio input callback stops being called after about 7 seconds. Some notes:

  • This occurs with both WASAPI and DirectShow audio APIs.
  • It doesn't matter which audio device I use.
  • The exact time duration before failure varies from run to run, slightly, as does the number of times the input callback is called.
  • DirectShow devices fail 1-2 seconds sooner than WASAPI devices, even if the same physical device is used.
  • Changing the frame size option will change the number of times the callback is called, but will not change the time duration or number of bytes received. That is, if I double the frame size, the callback is called about half the number of times, but the total time duration and byte count is about the same.
  • Changing the sample format option of course changes the number of bytes I receive, but the number of times the callback is called is not changed, and neither is the total time duration.
  • I'm not using an audio output. Input only.
  • The error callback is never called.
  • None of the RtAudioStreamFlags have any impact on this problem.
  • Windows 10 x64. Node.js 18.3.0. Audify 1.7.1.

Any thoughts as to the cause of this and how it can be solved?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions