[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gnash-commit] [SCM] Gnash branch, master, updated. 8dfe5b76c7722cc4b94f
From: |
Sandro Santilli |
Subject: |
[Gnash-commit] [SCM] Gnash branch, master, updated. 8dfe5b76c7722cc4b94f78f7e2a9e4e0579aaaf2 |
Date: |
Wed, 20 Oct 2010 16:53:03 +0000 |
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Gnash".
The branch, master has been updated
via 8dfe5b76c7722cc4b94f78f7e2a9e4e0579aaaf2 (commit)
from cd96c57e9e2b53d1e762c9424f1ca1eec888f4f6 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
http://git.savannah.gnu.org/cgit//commit/?id=8dfe5b76c7722cc4b94f78f7e2a9e4e0579aaaf2
commit 8dfe5b76c7722cc4b94f78f7e2a9e4e0579aaaf2
Author: Sandro Santilli <address@hidden>
Date: Wed Oct 20 18:52:29 2010 +0200
Add computation of sound handler lateness (fuzzy, wuold better be computed
using VM timer)
diff --git a/libsound/sound_handler.cpp b/libsound/sound_handler.cpp
index 4f9bac0..62c5dc2 100644
--- a/libsound/sound_handler.cpp
+++ b/libsound/sound_handler.cpp
@@ -554,8 +554,9 @@ sound_handler::fetchSamples (boost::int16_t* to, unsigned
int nSamples)
boost::uint32_t tl = timerLocal.elapsed();
if ( tl > 1000 ) {
boost::uint32_t tt = timerTotal.elapsed();
- log_debug("Samples fetch frequency: %d KHz (expected 44.100)",
- floor(fetched*500.0/tt)/1000);
+ boost::uint32_t exptime = fetched*1000/88200;
+ log_debug("Samples fetch frequency: %d KHz (%dms late)",
+ floor(fetched*500.0/tt)/1000, (long)exptime-tt);
timerLocal.restart();
}
#endif
-----------------------------------------------------------------------
Summary of changes:
libsound/sound_handler.cpp | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
hooks/post-receive
--
Gnash
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Gnash-commit] [SCM] Gnash branch, master, updated. 8dfe5b76c7722cc4b94f78f7e2a9e4e0579aaaf2,
Sandro Santilli <=