Skip to content

Commit

Permalink
AE: intermediate fix for sync of passthrough
Browse files Browse the repository at this point in the history
  • Loading branch information
FernetMenta authored and popcornmix committed Dec 14, 2015
1 parent c342c08 commit 7dc9de2
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion xbmc/cores/AudioEngine/Engines/ActiveAE/ActiveAE.cpp
Expand Up @@ -2239,7 +2239,6 @@ CSampleBuffer* CActiveAE::SyncStream(CActiveAEStream *stream)
// TODO
// implement pause bursts for passthrough, until then we need to exit here
stream->m_syncClock = CActiveAEStream::INSYNC;
return ret;
}

if (stream->m_syncClock == CActiveAEStream::STARTSYNC)
Expand All @@ -2263,6 +2262,13 @@ CSampleBuffer* CActiveAE::SyncStream(CActiveAEStream *stream)

bool newerror = stream->m_syncError.Get(error, stream->m_syncClock ? 100 : 1000);

// TODO: delete if passthrough ever gets a proper sync method
// for now I recommend to every one just not to use it, it has zero advantage anyway
if (m_mode == MODE_RAW)
{
return ret;
}

if (newerror && fabs(error) > threshold && stream->m_syncClock == CActiveAEStream::INSYNC)
{
stream->m_syncClock = CActiveAEStream::ADJUST;
Expand Down

0 comments on commit 7dc9de2

Please sign in to comment.