[vlc-devel] [PATCH] lib: add libvlc_audio_output_device_get()

Mark Lee mark.lee at capricasoftware.co.uk
Mon Jan 26 20:34:19 CET 2015


I use libvlc_audio_output_device_enum() to build a menu in my LibVLC
application with a menu item for each returned audio output device.

The problem is how to determine which audio output device is currently
the active one, and consequently which menu item to show as selected.

This patch adds a complementary API to libvlc_audio_output_device_set()
to get the identifier of the currently active audio device (if there is 
one).

(Tested on Linux)




More information about the vlc-devel mailing list