1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-27 02:20:05 +00:00

Correction to String::copyToUTF8. Millisecond timer rollover fix. Added channel count to BufferingAudioSource. Hashmap speed-up. Added Identifier::isValidIdentifier.

This commit is contained in:
Julian Storer 2011-05-04 11:47:12 +01:00
parent f307045b92
commit b820ec4567
21 changed files with 264 additions and 270 deletions

View file

@ -72,13 +72,14 @@ public:
{
const uint32 now = Time::getMillisecondCounter();
if (now <= lastTime)
if (now == lastTime)
{
wait (2);
wait (1);
continue;
}
const int elapsed = now - lastTime;
const int elapsed = now >= lastTime ? (now - lastTime)
: (std::numeric_limits<uint32>::max() - (lastTime - now));
lastTime = now;
const int timeUntilFirstTimer = getTimeUntilFirstTimer (elapsed);