After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 790014 - directsoundsrc: unstable audio
directsoundsrc: unstable audio
Status: RESOLVED OBSOLETE
Product: GStreamer
Classification: Platform
Component: gst-plugins-bad
1.12.3
Other Windows
: Normal major
: git master
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2017-11-07 13:31 UTC by Rytis Kymantas
Modified: 2018-11-03 14:15 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Fix for audio glitch with directsoundsrc (7.09 KB, patch)
2018-02-05 07:59 UTC, Brendan Lockhart
none Details | Review

Description Rytis Kymantas 2017-11-07 13:31:18 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.
Comment 1 Brendan Lockhart 2018-02-05 03:33:13 UTC
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...
Comment 2 Brendan Lockhart 2018-02-05 07:59:40 UTC
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
Comment 3 GStreamer system administrator 2018-11-03 14:15:17 UTC
-- 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.