gstreamer/sys
Nirbheek Chauhan 1450851095 wasapi: Rewrite most of the code to make it work
Both the source and the sink elements were broken in a number of ways:

* prepare() was assuming that the format was always S16LE 2ch 44.1KHz.
  We now probe the preferred format with GetMixFormat().
* Device initialization was done with the wrong buffer size
  (buffer_time is in microseconds, not nanoseconds).
* sink_write() and src_read() were just plain wrong and would never
  write or read anything useful.
* Some functions in prepare() were always returning FALSE which meant
  trying to use the elements would *always* fail.
* get_caps() and delay() were not implemented at all.

TODO: support for >2 channels
TODO: pro-audio low-latency
TODO: SPDIF and other encoded passthroughs

Three new properties are now implemented: role, mute, and device.

* 'role' designates the stream role of the initialized device, see:
   https://msdn.microsoft.com/en-us/library/windows/desktop/dd370842(v=vs.85).aspx
* 'device' is a system-wide GUIDesque string for a specific device.
* 'mute' is a sink property and simply mutes it.

On my Windows 8.1 system, the lowest latency that works is:

  wasapisrc buffer-time=20000
  wasapisink buffer-time=10000

aka, 20ms and 10ms respectively. These values are close to the lowest
possible with the IAudioClient interface. Further improvements require
porting to IAudioClient2 or IAudioClient3.

https://docs.microsoft.com/en-us/windows-hardware/drivers/audio/low-latency-audio
2018-01-22 14:18:53 +05:30
..
acmenc Fix up package name and origin in some plugins 2017-05-18 10:58:20 +01:00
acmmp3dec Remove plugin specific static build option 2017-05-16 14:05:52 -04:00
androidmedia gl: update plugins to use GstGL from -base 2017-12-19 12:02:31 +00:00
applemedia applemedia: don't include private cocoa gl header 2017-12-19 21:35:31 +00:00
bluez Remove plugin specific static build option 2017-05-16 14:05:52 -04:00
d3dvideosink Request minimum buffer even if need_pool is FALSE 2017-09-06 14:19:37 -04:00
decklink decklinkaudiosrc: Extrapolate stream/hw reference timestamps when video frame is missing 2018-01-04 15:51:16 +02:00
directsound sys: Convert source files to UTF-8 2017-08-16 13:05:05 +01:00
dshowdecwrapper Remove plugin specific static build option 2017-05-16 14:05:52 -04:00
dshowsrcwrapper dshowsrcwrapper: fix DirectShow caps negotiation and set capture pin caps 2016-04-23 15:21:44 +01:00
dshowvideosink bad: use new gst_element_class_add_static_pad_template() 2016-03-24 14:56:51 +02:00
dvb dvb: Fix previous commit 2017-11-23 08:14:06 +01:00
fbdev Remove plugin specific static build option 2017-05-16 14:05:52 -04:00
ipcpipeline ipcpipeline: Don't leak structure 2017-11-23 08:09:36 +01:00
kms kmssink: Fix CropMeta support 2017-12-06 13:34:19 -05:00
msdk msdk: change plugin's description 2018-01-11 11:29:38 +01:00
nvdec gl: update plugins to use GstGL from -base 2017-12-19 12:02:31 +00:00
nvenc gl: update plugins to use GstGL from -base 2017-12-19 12:02:31 +00:00
opensles Remove plugin specific static build option 2017-05-16 14:05:52 -04:00
shm shmsink: Block in preroll_wait on unlock 2017-12-19 17:41:43 -05:00
tinyalsa Remove plugin specific static build option 2017-05-16 14:05:52 -04:00
uvch264 uvch264src: Check return values of all xu_query calls 2017-11-24 08:06:52 +01:00
vcd Remove plugin specific static build option 2017-05-16 14:05:52 -04:00
vdpau Fix up package name and origin in some plugins 2017-05-18 10:58:20 +01:00
wasapi wasapi: Rewrite most of the code to make it work 2018-01-22 14:18:53 +05:30
winks sys: Convert source files to UTF-8 2017-08-16 13:05:05 +01:00
winscreencap Remove plugin specific static build option 2017-05-16 14:05:52 -04:00
Makefile.am ipcpipeline: move to sys/ and make it dependent on platform support for unix sockets 2017-08-02 10:40:24 +03:00
meson.build ipcpipeline: move to sys/ and make it dependent on platform support for unix sockets 2017-08-02 10:40:24 +03:00