changed latency reporting

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17370 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Marcus Overhagen 2006-05-08 18:53:44 +00:00
parent bba1e5c831
commit d4ab13e6f1
1 changed files with 3 additions and 1 deletions

View File

@ -61,7 +61,9 @@ SoundOutput::InitCheck()
bigtime_t
SoundOutput::Latency()
{
return fSoundPlayer->Latency() + fBufferDuration;
// Because of buffering, latency of SoundOutput is
// slightly higher then the BSoundPlayer latency.
return fSoundPlayer->Latency() + min_c(1000, fBufferDuration / 4);
}