[Bug 759558] osxaudiosrc/osaudiosink uses non-unique identifiers as device ID
GStreamer (GNOME Bugzilla)
bugzilla at gnome.org
Wed Dec 16 09:38:05 PST 2015
https://bugzilla.gnome.org/show_bug.cgi?id=759558
--- Comment #1 from Marcin Lewandowski <marcin at saepia.net> ---
Moreover, this can be more dangerous.
If I unplug my Z-10 USB Speakers and plug something else, the same ID gets
allocated by totally another device.
$ say -a ?
50 Built-in Output
60 Sennheiser USB Headset
So I you build let's say, a DAW that should remember it's audio interface
routing setup (it's painful to rebuild it every time) and be smart enough that
if user plugs a device during runtime it is capable of recognizing it, now you
can
a) store IDs in the routing configuration but you can never be sure if they
mean the same soundcard as was used before
b) rely on device names
both options are unreliable.
Moreover if I plug two of these three devices, then unplug one of them, ID of
them can change in the runtime!
(plug Sennheiser USB)
$ say -a ?
50 Built-in Output
60 Sennheiser USB Headset
(plug Z-10 USB Speaker)
$ say -a ?
50 Built-in Output
68 Z-10 USB Speaker
60 Sennheiser USB Headset
(unplug Sennheiser USB)
$ say -a ?
50 Built-in Output
60 Z-10 USB Speaker
--
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