"libvlc_audio_set_volume" problem with VLC 3.0+
Posted: 29 Nov 2018 13:29
Hello,
I have multiple embedded players in my application. I could change audio volume of each media seperately with VLC 2.2.8 plugins. With the exact same code, when I switch to VLC 3.0.3 or VLC 3.0.4 plugins, every time I call "libvlc_audio_set_volume", it changes the volume of every active media. I have 4 different media players in the code and here is what's happening roughly:
* I open 1st player and change volume of the 1st media only --> mmdevice audio output debug: simple volume changed: 0.238328, muting disabled (the same message prints twice)
* I open 2nd player and change volume of the 2nd media only --> mmdevice audio output debug: simple volume changed: 0.238328, muting disabled (the same message prints 8 times)
* I open 3rd player and change volume of the 3rd media only --> mmdevice audio output debug: simple volume changed: 0.238328, muting disabled (the same message prints 18 times)
* I open 4th player and change volume of the 4th media only --> mmdevice audio output debug: simple volume changed: 0.238328, muting disabled (the same message prints 32 times)
Every time I change the volume of any media, the volumes of all other media change to the same level. Also I dont understand why "mmdevice audio output debug: simple volume changed: 0.238328, muting disabled" log message is printed (probably vlc_AudioSessionEvents_OnSimpleVolumeChanged callback is called?) for 2,8,18 and 32 times respectively even though I call libvlc_audio_set_volume only once.
Again, the same code works perfectly with VLC 2.2.8 plugins. What am I doing wrong? Or is this a bug for VLC 3.0+?
Regards.
I have multiple embedded players in my application. I could change audio volume of each media seperately with VLC 2.2.8 plugins. With the exact same code, when I switch to VLC 3.0.3 or VLC 3.0.4 plugins, every time I call "libvlc_audio_set_volume", it changes the volume of every active media. I have 4 different media players in the code and here is what's happening roughly:
Code: Select all
libvlc_audio_set_volume(player1->core(), value);
Code: Select all
libvlc_audio_set_volume(player2->core(), value);
Code: Select all
libvlc_audio_set_volume(player3->core(), value);
Code: Select all
libvlc_audio_set_volume(player4->core(), value);
Every time I change the volume of any media, the volumes of all other media change to the same level. Also I dont understand why "mmdevice audio output debug: simple volume changed: 0.238328, muting disabled" log message is printed (probably vlc_AudioSessionEvents_OnSimpleVolumeChanged callback is called?) for 2,8,18 and 32 times respectively even though I call libvlc_audio_set_volume only once.
Again, the same code works perfectly with VLC 2.2.8 plugins. What am I doing wrong? Or is this a bug for VLC 3.0+?
Regards.