I'm working on an AndroidTV application embedded in an audio sink (that has also the capability of outputting to HDMI). I'm having an issue with the transitioning between the local output and the output to HDMI, since the volume level outputted on the HDMI output is way lower (sometimes even inaudible) than the one I output from the embedded sink. Question: Is there a way I can extract the audio output capacity of the sink I'm connected through HDMI and adapt its level when transitioning from local to HDMI output? The objective here is to have a smooth transition between the two "worlds".
- Extract the HDMI Sink capacity
- Upon the transitioning from Local to external (HDMI) output, get the current volume level (x%, while knowing that the sink has the capacity for outputting say 80dB)
- Set on the remote HDMI component a volume level of x% its capacity (returned in 1)
Thank you