windows: Disable all audio device providers except wasapi2

We have too many device providers outputting duplicate device entries,
and it's not clear to people what they should be using. Let's only
keep wasapi2 around since it is PRIMARY + 1.

After the device switching work done on WASAPI2, there is no reason to
use directsound anymore.

https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/9326

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/9438>
This commit is contained in:
Nirbheek Chauhan 2025-07-24 20:42:59 +01:00 committed by GStreamer Marge Bot
parent 7788186a30
commit 87ed0c0e33
3 changed files with 5 additions and 5 deletions

View File

@ -35,12 +35,12 @@
static gboolean
plugin_init (GstPlugin * plugin)
{
if (!gst_element_register (plugin, "directsoundsrc", GST_RANK_SECONDARY,
if (!gst_element_register (plugin, "directsoundsrc", GST_RANK_MARGINAL,
GST_TYPE_DIRECTSOUND_SRC))
return FALSE;
if (!gst_device_provider_register (plugin, "directsoundsrcdeviceprovider",
GST_RANK_PRIMARY, GST_TYPE_DIRECTSOUND_DEVICE_PROVIDER))
GST_RANK_NONE, GST_TYPE_DIRECTSOUND_DEVICE_PROVIDER))
return FALSE;

View File

@ -41,7 +41,7 @@ plugin_init (GstPlugin * plugin)
return FALSE;
if (!gst_device_provider_register (plugin, "wasapideviceprovider",
GST_RANK_PRIMARY, GST_TYPE_WASAPI_DEVICE_PROVIDER))
GST_RANK_NONE, GST_TYPE_WASAPI_DEVICE_PROVIDER))
return FALSE;
GST_DEBUG_CATEGORY_INIT (gst_wasapi_debug, "wasapi",

View File

@ -35,12 +35,12 @@
static gboolean
plugin_init (GstPlugin * plugin)
{
if (!gst_element_register (plugin, "directsoundsink", GST_RANK_SECONDARY,
if (!gst_element_register (plugin, "directsoundsink", GST_RANK_MARGINAL,
GST_TYPE_DIRECTSOUND_SINK))
return FALSE;
if (!gst_device_provider_register (plugin, "directsoundsinkdeviceprovider",
GST_RANK_PRIMARY, GST_TYPE_DIRECTSOUND_DEVICE_PROVIDER))
GST_RANK_NONE, GST_TYPE_DIRECTSOUND_DEVICE_PROVIDER))
return FALSE;
return TRUE;