changed latency reporting
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17370 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -61,7 +61,9 @@ SoundOutput::InitCheck()
|
|||||||
bigtime_t
|
bigtime_t
|
||||||
SoundOutput::Latency()
|
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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user