Skip to content

Commit

Permalink
Disable passthrough if Audio48kOverride is set and audio stream is !=…
Browse files Browse the repository at this point in the history
… 48kHz
  • Loading branch information
jyavenard committed Mar 29, 2011
1 parent 3a5a485 commit de55ad7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions mythtv/libs/libmyth/audio/audiooutputbase.cpp
Expand Up @@ -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;
Expand Down

0 comments on commit de55ad7

Please sign in to comment.