as for these functions:
Code: Select all
libvlc_audio_output_list_get
libvlc_audio_output_device_list_get
libvlc_audio_output_device_get
libvlc_audio_output_device_set
I use it and it works good. I can change audio output from HDMI to analog speakers or headphones.
as for these types:
Code: Select all
libvlc_audio_output_device_types_t
libvlc_AudioOutputDevice_SPDIF
they are associated only with these functions:
Code: Select all
libvlc_audio_output_get_device_type
libvlc_audio_output_set_device_type
I have already tried this function libvlc_audio_output_set_device_type. Unfortunately, there is no result. As was the output in PCM Multi Ch, and remained.
I tried to learn VLC Player sources.That's what i found in \lib\audio.c:
Code: Select all
int libvlc_audio_output_get_device_type( libvlc_media_player_t *mp )
{
(void) mp;
return libvlc_AudioOutputDevice_Error;
}
void libvlc_audio_output_set_device_type( libvlc_media_player_t *mp,
int device_type )
{
(void) mp; (void) device_type;
}
How it works if anyway it returns Error? I'm sorry, I know C++ very superficially.