[vdr] Plugin cDevice audio switch handling

Klaus Schmidinger Klaus.Schmidinger at cadsoft.de
Fri Oct 7 16:39:31 CEST 2005

Zierath, Bernd (EBV) wrote:
> Hi, 
>>What about
>>  virtual void SetAudioChannelDevice(int AudioChannel);
>>(And why the second posting in HTML?)
> 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.


More information about the vdr mailing list