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:
parent
f307045b92
commit
b820ec4567
21 changed files with 264 additions and 270 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue