Hi,
What about
virtual void SetAudioChannelDevice(int AudioChannel);
(And why the second posting in HTML?)
Klaus
Maybe I'm doing something wrong the method is there and I see in the the debug log the SetAudioChannelDevice(0) after switching the channel but if I then try to change the audio with the "green button" only SetDigitalAudioDevice(); is shown up.
CU Bernd Zierath
Zierath, Bernd (EBV) wrote:
Hi,
What about
virtual void SetAudioChannelDevice(int AudioChannel);
(And why the second posting in HTML?)
Klaus
Maybe I'm doing something wrong the method is there and I see in the the debug log the SetAudioChannelDevice(0) after switching the channel but if I then try to change the audio with the "green button" only SetDigitalAudioDevice(); is shown up.
Well, cDisplayTracks::ProcessKey() calls cDevice::PrimaryDevice()->SetAudioChannel(), which in turn calls SetAudioChannelDevice().
Maybe there's something wrong with your derived class's declaration of this function, so that you're not reimplementing the actual virtual function?
You might want to add a few debug outputs to see whether the chain of calls mentioned above is actually performed.
An other reason could be that there is no "normal" audio channel but rather only Dolby Digital channels. In that case SetAudioChannelDevice() is of course never called.
Klaus