Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

… 48kHz
  • Loading branch information...
commit de55ad789346f14cdd2f0a658653bb4c5c2e2b78 1 parent 3a5a485
@jyavenard jyavenard authored
Showing with 3 additions and 0 deletions.
  1. +3 −0  mythtv/libs/libmyth/audio/audiooutputbase.cpp
View
3  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;
Please sign in to comment.
Something went wrong with that request. Please try again.