VolumeLevel: hardware vs players
#1
Hi,

I'm trying to understand how XBMC manages volume, but after reading the sources, I'm not sure that I'v understood it correctly.

When users change volume (either by key ACTION_VOLUME_UP/DOWN or dialog audio/subtitle volume slider), the global application method CApplication::SetVolume() is called.
The method set hardware volume, then call player SetVolume() if it supports volume control.

What is the need to set volume on both hardware and players?
(even if only omxplayer & amlplayer supports it)

Thanks
Reply
#2
SetHardwareVolume() just calls CAEFactory::SetVolume() with the appropriate value.

I believe you'll find that those players that support volume (via the VolumeChanged callback) don't use AE's volume.
Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.


Image
Reply

Logout Mark Read Team Forum Stats Members Help
VolumeLevel: hardware vs players0