gstreamer/sys/directsound
Nirbheek Chauhan 2d44b53ff6 directsoundsink: Fix corner case causing large CPU usage
We were unnecessarily looping/goto-ing repeatedly when we had exactly
the amount of data as the free space, and also when the free space was
too small. This, as it turns out, is a very common scenario with
Directsound on Windows.

Fixes https://bugzilla.gnome.org/show_bug.cgi?id=773681

We have to do polling here because the event notification API that
Directsound exposes cannot be used with live playback since all events
must be registered in advance with the capture buffer, you cannot
add/remove them once playback has begun. Directsoundsrc had the same
problem.

See also: https://bugzilla.gnome.org/show_bug.cgi?id=781249
2017-05-08 16:02:46 +02:00
..
gstdirectsoundplugin.c Fix FSF address 2012-11-04 00:07:18 +00:00
gstdirectsoundsink.c directsoundsink: Fix corner case causing large CPU usage 2017-05-08 16:02:46 +02:00
gstdirectsoundsink.h directsound: port away from old DirectX API 2016-08-18 20:20:15 +01:00
Makefile.am gst: Add better support for static plugins 2013-04-15 15:54:11 +02:00
meson.build meson: directsound: Add ole32 library dependency 2016-10-21 06:01:16 -03:00