Recording a monitor when nothing is playing results in 2 seconds of extra silence
Submitted by Maarten Baert
Assigned to pul..@..op.org
Description
When I record a monitor when nothing is playing, my application always receives 2 seconds of silence during the first few milliseconds. I assume this is sound from the past, but I can't tell because it's just silence. This behaviour creates problems in my application, and I suppose in other applications as well.
My application deals with both audio and video, and the unexpected extra two seconds of audio are more than enough to desynchronize the audio and the video. I am now working around this by dropping all audio frames that I receive within the first 100ms, but this is clearly not ideal.
This does not happen when there is anything playing. It also doesn't happen when I record the microphone.