You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Given either a single duplex AudioIO instance, or 2 independent input/output instances When simultaneously starting both instances Then the recording stops once the playback stops.
It seems that the streams are somehow tied, and that the playback stream will keep waiting for more playback data instead of resuming the recording. Makes it quite unusable at the moment.
// ASSUME io1 is a playback instance, and io2 is a recording instance:constmustic=fs.createReadStream(__dirname+"/guitar-2-16-44100.raw",{highWaterMark: 16*1024,emitClose: false}music.pipe(io1);// Send music data to playback deviceio2.on("data",(data)=>console.log(data.length));// Log recorded buffersio1.start();// Start playbackio2.start();// Start recording
Effect: recording buffers are logged as long as playback continues. Then, everything stops.
The text was updated successfully, but these errors were encountered:
Given either a single duplex AudioIO instance, or 2 independent input/output instances
When simultaneously starting both instances
Then the recording stops once the playback stops.
It seems that the streams are somehow tied, and that the playback stream will keep waiting for more playback data instead of resuming the recording. Makes it quite unusable at the moment.
Effect: recording buffers are logged as long as playback continues. Then, everything stops.
The text was updated successfully, but these errors were encountered: