Skip to content

Commit

Permalink
Revert "ActiveAESink: workaround for TrueHD and DD+ broken after paus…
Browse files Browse the repository at this point in the history
…e or seek in AudioTrack RAW (Android only)"

This reverts commit bb178f7.
  • Loading branch information
fritsch committed Aug 28, 2023
1 parent 599b778 commit 3caff02
Showing 1 changed file with 2 additions and 12 deletions.
14 changes: 2 additions & 12 deletions xbmc/cores/AudioEngine/Engines/ActiveAE/ActiveAESink.cpp
Expand Up @@ -1156,20 +1156,10 @@ void CActiveAESink::SetSilenceTimer()
{
if (m_extStreaming)
m_extSilenceTimeout = XbmcThreads::EndTime<decltype(m_extSilenceTimeout)>::Max();
else if (m_extAppFocused) // handles no playback/GUI and playback in pause and seek
{
// only true with AudioTrack RAW + passthrough + TrueHD or EAC3 (DD+)
const bool noSilenceOnPause =
!m_needIecPack && m_requestedFormat.m_dataFormat == AE_FMT_RAW &&
(m_sinkFormat.m_streamInfo.m_type == CAEStreamInfo::STREAM_TYPE_TRUEHD ||
m_sinkFormat.m_streamInfo.m_type == CAEStreamInfo::STREAM_TYPE_EAC3);

m_extSilenceTimeout = (noSilenceOnPause) ? 0ms : m_silenceTimeOut;
}
else if (m_extAppFocused)
m_extSilenceTimeout = m_silenceTimeOut;
else
{
m_extSilenceTimeout = 0ms;
}

m_extSilenceTimer.Set(m_extSilenceTimeout);
}

0 comments on commit 3caff02

Please sign in to comment.