how to determine if a digital audio track is beeing replayed

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

when playing a bit with the mlcd plugin, i came around the question how to 
find out if the current audio track beeing replayed is a digital track 
(ac3/dts) or not.
There is a method SetAudioChannel() but this only signals left/right/stereo. 
Also it is currently only called when a user selects the audio channel 
manually, not on channel switch or vdr startup (not to mention all those 
plugins that replay something)

The detection, if LPCM or digital audio is beeing replayed is already done in 
cDevice::PlayPesPacket() , so shouldn't we call MsgSetAudioChannel() from 
there and extend it with "3=digital audio"? 
On the other hand this would cause some overhead as PlayPesPacked is called 
every second...

Or is there any other proposed method to determine the currently played audio 
type?

cheers,
Tim


[Index of Archives]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Util Linux NG]     [Xfree86]     [Big List of Linux Books]     [Fedora Users]     [Fedora Women]     [ALSA Devel]     [Linux USB]

  Powered by Linux