|
From: Lasse Kärkkäi. <tr...@us...> - 2010-01-16 23:49:16
|
Module: performous
Branch: master
Commit: 5b6260dca923df732129633f2141a997aa2bef9d
Author: Lasse Karkkainen <tro...@tr...>
Date: Sun Jan 17 01:46:47 2010 +0200
Allow up to 5 % audio timing adjustment
---
game/audio.hh | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/game/audio.hh b/game/audio.hh
index ee837b4..e4f701f 100644
--- a/game/audio.hh
+++ b/game/audio.hh
@@ -62,8 +62,8 @@ private:
m_syncTime = now;
if (duration < 0.0 || duration > 1.0) return; // No syncing for weird situations
if (std::abs(diff) < 0.1 * duration) {
- // Apply 1 % adjustment either up or down
- m_correction += (diff > 0.0 ? -1.0 : 1.0) * 0.01 * duration;
+ // Apply 5 % adjustment either up or down
+ m_correction += (diff > 0.0 ? -1.0 : 1.0) * 0.05 * duration;
} else {
// Stepped adjustment to the right time (e.g. after seeking)
m_correction -= diff;
|