Hi all,
is it possible to get a list of available audio devices under windows? I need it to populate a combo box and let the user choose between different choices. Thank you Walter _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Walter Lucetti
www.myzhar.com |
On Fri, 2016-11-18 at 13:45 +0100, Walter Lucetti wrote:
Hi Walter, > is it possible to get a list of available audio devices under > windows? I need it to populate a combo box and let the user choose > between different choices. The API to use for that is GstDeviceMonitor, but I don't think the windows audio plugins implement the stuff for that (GstDeviceProvider). Patches welcome :) Cheers -Tim -- Tim Müller, Centricular Ltd - http://www.centricular.com _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel |
Hi Tim, thank you for the reply. I was just reading the documentation about GstDeviceMonitor and I tested "gst-device-monitor-1.0.exe", but it enumerates only webcams, no audio devices. I'm not yet ready to add a patch for Windows GStreamer... I'm a Linux user and I must use GStreamer under Windows only because a client wants an application to be cross-platform. I need to find an alternative method to enumerate the audio devices with a name that GStreamer can understand as device-name parameter for DirectShow or DirectX audio source. What a mess ^_^ Thank you Walter 2016-11-18 15:30 GMT+01:00 Tim Müller <[hidden email]>: On Fri, 2016-11-18 at 13:45 +0100, Walter Lucetti wrote: _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Walter Lucetti
www.myzhar.com |
I found an alternative solution using the RtAudio library:
http://www.music.mcgill.ca/~gary/rtaudio/index.html I compiled it with VisualStudio 2012 without any kind of issue and I can probe the devices installed on the system and get the correct "device-name" to be used with "directsoundsrc" to select the input device. RtAudio is opensource and the code is available on Github: https://github.com/thestk/rtaudio I suggest to GStreamer developers to get the procedure to enumerate devices from here: https://github.com/thestk/rtaudio/blob/master/RtAudio.cpp Walter
Walter Lucetti
www.myzhar.com |
Hi all,
if someone is interested in this issue I discovered another issue related to "device-name" in Windows. The "device enumeration" made with DirectSound returns the full device description, but GStreamer to enumerate internally the available devices uses a WINAPI that returns only the first 32 bytes of the device description. You can verify this issue using debug-level=4. So to be sure to match the correct device-name you need to trim it to the first 32 bytes. Walter
Walter Lucetti
www.myzhar.com |
Free forum by Nabble | Edit this page |