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.
-- GitLab Migration Automatic Message -- This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/pulseaudio/pulseaudio/issues/352.
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.