Browse Source

Add new patch

tags/2018-04-16
falkTX 10 years ago
parent
commit
b17528f54b
1 changed files with 25 additions and 0 deletions
  1. +25
    -0
      libs/juce/patches/fix-old-mingw-build.patch

+ 25
- 0
libs/juce/patches/fix-old-mingw-build.patch View File

@@ -0,0 +1,25 @@
diff --git a/modules/juce_audio_devices/native/juce_win32_ASIO.cpp b/modules/juce_audio_devices/native/juce_win32_ASIO.cpp
index 99e3cfb..44bab42 100644
--- a/modules/juce_audio_devices/native/juce_win32_ASIO.cpp
+++ b/modules/juce_audio_devices/native/juce_win32_ASIO.cpp
@@ -1416,15 +1416,13 @@ private:
}
};
- template <>
- struct ASIOCallbackFunctions <sizeof(currentASIODev) / sizeof(currentASIODev[0])>
- {
- static void setCallbacksForDevice (ASIOCallbacks&, ASIOAudioIODevice*) noexcept {}
- };
-
void setCallbackFunctions() noexcept
{
- ASIOCallbackFunctions<0>::setCallbacksForDevice (callbacks, this);
+ /**/ if (currentASIODev[0] == this) ASIOCallbackFunctions<0>::setCallbacks (callbacks);
+ else if (currentASIODev[1] == this) ASIOCallbackFunctions<1>::setCallbacks (callbacks);
+ else if (currentASIODev[2] == this) ASIOCallbackFunctions<2>::setCallbacks (callbacks);
+ else if (currentASIODev[3] == this) ASIOCallbackFunctions<3>::setCallbacks (callbacks);
+ else jassertfalse;
}
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (ASIOAudioIODevice)

Loading…
Cancel
Save