How to get the selected audio output ?

This forum is about all development around libVLC.
milink
New Cone
New Cone
Posts: 6
Joined: 10 May 2013 18:33

How to get the selected audio output ?

Postby milink » 01 Feb 2014 19:52

Hi !
I develop a little media player with libVLC. I found how to change the audio output, but I don't see which function should I use to get the current audio output.
Thanks if you can help me... :)

Rémi Denis-Courmont
Developer
Developer
Posts: 15265
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: How to get the selected audio output ?

Postby Rémi Denis-Courmont » 03 Feb 2014 20:27

libvlc_audio_output_set() obviously.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

milink
New Cone
New Cone
Posts: 6
Joined: 10 May 2013 18:33

Re: How to get the selected audio output ?

Postby milink » 03 Feb 2014 21:27

But this function set the output (if I correctly understand...). I would like to get the output !
If this function is used for this, can you show me how I can use it, please ?

Rémi Denis-Courmont
Developer
Developer
Posts: 15265
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: How to get the selected audio output ?

Postby Rémi Denis-Courmont » 03 Feb 2014 21:37

If you set the audio output, then you know what you set it to. If you did not set it, then the value is undefined, so you cannot "get" it.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

milink
New Cone
New Cone
Posts: 6
Joined: 10 May 2013 18:33

Re: How to get the selected audio output ?

Postby milink » 09 Feb 2014 16:06

Thanks !


Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 12 guests