diff --git a/build/linux/platform_specific_code/juce_linux_Audio.cpp b/build/linux/platform_specific_code/juce_linux_Audio.cpp index 3a276061a2..52068f0225 100644 --- a/build/linux/platform_specific_code/juce_linux_Audio.cpp +++ b/build/linux/platform_specific_code/juce_linux_Audio.cpp @@ -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(); diff --git a/build/win32/platform_specific_code/juce_win32_SystemStats.cpp b/build/win32/platform_specific_code/juce_win32_SystemStats.cpp index df662cc567..2e2a9e825b 100644 --- a/build/win32/platform_specific_code/juce_win32_SystemStats.cpp +++ b/build/win32/platform_specific_code/juce_win32_SystemStats.cpp @@ -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;