[Bug 753670] New: [PATCH] directsoundsink: allow specifying audio playback device

GStreamer (GNOME Bugzilla) bugzilla at gnome.org
Sat Aug 15 20:20:46 PDT 2015


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

            Bug ID: 753670
           Summary: [PATCH] directsoundsink: allow specifying audio
                    playback device
    Classification: Platform
           Product: GStreamer
           Version: 1.5.2
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: Normal
         Component: gst-plugins-good
          Assignee: gstreamer-bugs at lists.freedesktop.org
          Reporter: dustin at virtualroadside.com
        QA Contact: gstreamer-bugs at lists.freedesktop.org
     GNOME version: ---

This is a very simple patch that only allows you to set the device id for the
directsoundsink, so you can use it with an audio device of the user's choosing.

I've gutted the patch at https://bugzilla.gnome.org/show_bug.cgi?id=584980 even
further, and created a patch and tested against 1.4.5. It applies cleanly
against 1.5.2, I can't imagine it wouldn't work for it.

Tested with: gst-launch.exe playbin uri=file:///c:/tmp/jaq.mp3
audio-sink="directsoundsink device="{BB7E6F52-BAAD-40FB-9946-F733C352C6A8}""

If you want to get your own guids and try it out, I wrote a python script to
retrieve them: https://gist.github.com/virtuald/bacc4bafabf267a0831e

I just noticed that someone added a functionality to the directsoundsrc
(https://bugzilla.gnome.org/show_bug.cgi?id=706574) to do something similar,
but that one sets the device by name. IMHO that's the wrong approach, as the
name is human readable and is definitely not unique. This patch allows you to
set the device id by GUID, which should be reasonably unique.

At some point someone will care enough about this to implement the
GstDeviceMonitor et al, but that time is not now.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.


More information about the gstreamer-bugs mailing list