mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
This commit is contained in:
parent
6f28298e4c
commit
05187d383b
2 changed files with 6 additions and 6 deletions
|
|
@ -522,7 +522,7 @@ public:
|
|||
numCallbacks = 0;
|
||||
}
|
||||
|
||||
void setCallback (AudioIODeviceCallback* const newCallback)
|
||||
void setCallback (AudioIODeviceCallback* const newCallback) throw()
|
||||
{
|
||||
const ScopedLock sl (callbackLock);
|
||||
callback = newCallback;
|
||||
|
|
@ -584,7 +584,7 @@ public:
|
|||
}
|
||||
}
|
||||
|
||||
int getBitDepth() const
|
||||
int getBitDepth() const throw()
|
||||
{
|
||||
if (outputDevice != 0)
|
||||
return outputDevice->bitDepth;
|
||||
|
|
@ -626,7 +626,7 @@ private:
|
|||
unsigned int minChansOut, maxChansOut;
|
||||
unsigned int minChansIn, maxChansIn;
|
||||
|
||||
bool failed (const int errorNum)
|
||||
bool failed (const int errorNum) throw()
|
||||
{
|
||||
if (errorNum >= 0)
|
||||
return false;
|
||||
|
|
@ -636,7 +636,7 @@ private:
|
|||
return true;
|
||||
}
|
||||
|
||||
void initialiseRatesAndChannels()
|
||||
void initialiseRatesAndChannels() throw()
|
||||
{
|
||||
sampleRates.clear();
|
||||
channelNamesOut.clear();
|
||||
|
|
|
|||
|
|
@ -485,9 +485,9 @@ int64 Time::getHighResolutionTicks() throw()
|
|||
// fix for a very obscure PCI hardware bug that can make the counter
|
||||
// sometimes jump forwards by a few seconds..
|
||||
static int64 hiResTicksOffset = 0;
|
||||
const int offsetDrift = abs ((int) (newOffset - hiResTicksOffset));
|
||||
const int64 offsetDrift = abs64 (newOffset - hiResTicksOffset);
|
||||
|
||||
if (offsetDrift > ((int) hiResTicksPerSecond) >> 1)
|
||||
if (offsetDrift > (hiResTicksPerSecond >> 1))
|
||||
hiResTicksOffset = newOffset;
|
||||
|
||||
return ticks.QuadPart + hiResTicksOffset;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue