GNOME Bugzilla – Bug 790014
directsoundsrc: unstable audio
Last modified: 2018-11-03 14:15:17 UTC
Starting with 1.12.0 (ignoring the unstable 1.11 release), can't get direcsoundsrc to work cleanly. There's always some audio garbling or clipping / popping sounds. Changing configuration / devices / pipeline only changes the severity of the issue. About the only thing to provide a stable improvement is increasing latency-time to at least 100ms which is far too high for the intended low-latency application. 1.10.5 version did not have these issues, but had constantly increasing latency that 1.12.3 does not.
I'm also having some weird issues with the audio. After looking at the code, I think that part of the issue is that IDirectSoundCaptureBuffer_GetCurrentPosition is using the capture cursor position, whereas it should be using the read cursor position. From MSDN: "The capture cursor is ahead of the read cursor. The data after the read position up to and including the capture position is not necessarily valid data." However, I switched it to use the read cursor in the two places relevant, and I'm still getting a lot of static...
Created attachment 367894 [details] [review] Fix for audio glitch with directsoundsrc Turns out the static that I was getting was just because on my system the read cursor moves in bigger jumps of 6000 as opposed to 1950 for the capture cursor. Increasing the latency-time fixed it
-- 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/gstreamer/gst-plugins-bad/issues/630.