Browse Source

tags/2021-05-28
jules 18 years ago
parent
commit
05187d383b
2 changed files with 6 additions and 6 deletions
  1. +4
    -4
      build/linux/platform_specific_code/juce_linux_Audio.cpp
  2. +2
    -2
      build/win32/platform_specific_code/juce_win32_SystemStats.cpp

+ 4
- 4
build/linux/platform_specific_code/juce_linux_Audio.cpp View File

@@ -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();


+ 2
- 2
build/win32/platform_specific_code/juce_win32_SystemStats.cpp View File

@@ -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…
Cancel
Save