Permalink
Browse files

Disable passthrough if Audio48kOverride is set and audio stream is !=…

… 48kHz
  • Loading branch information...
1 parent 3a5a485 commit de55ad789346f14cdd2f0a658653bb4c5c2e2b78 @jyavenard jyavenard committed Mar 29, 2011
Showing with 3 additions and 0 deletions.
  1. +3 −0 mythtv/libs/libmyth/audio/audiooutputbase.cpp
@@ -277,6 +277,9 @@ bool AudioOutputBase::CanPassthrough(int samplerate, int channels,
ret &= output_settingsdigital->canFeature(arg);
ret &= output_settingsdigital->IsSupportedFormat(FORMAT_S16);
ret &= output_settingsdigital->IsSupportedRate(samplerate);
+ // if we must resample to 48kHz ; we can't passthrough
+ ret &= !((samplerate != 48000) &&
+ gCoreContext->GetNumSetting("Audio48kOverride", false));
// Don't know any cards that support spdif clocked at < 44100
// Some US cable transmissions have 2ch 32k AC-3 streams
ret &= samplerate >= 44100;

0 comments on commit de55ad7

Please sign in to comment.