Audio plugin host https://kx.studio/carla
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

90 lines
2.4KB

  1. /*
  2. * Cross-platform C++ library for Carla, based on Juce v4
  3. * Copyright (C) 2015-2016 ROLI Ltd.
  4. * Copyright (C) 2017-2022 Filipe Coelho <falktx@falktx.com>
  5. *
  6. * This program is free software; you can redistribute it and/or
  7. * modify it under the terms of the GNU General Public License as
  8. * published by the Free Software Foundation; either version 2 of
  9. * the License, or any later version.
  10. *
  11. * This program is distributed in the hope that it will be useful,
  12. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  14. * GNU General Public License for more details.
  15. *
  16. * For a full copy of the GNU General Public License see the doc/GPL.txt file.
  17. */
  18. #include "common.hpp"
  19. //==============================================================================
  20. namespace water
  21. {
  22. #ifdef CARLA_OS_WIN
  23. static HINSTANCE currentModuleHandle = nullptr;
  24. HINSTANCE getCurrentModuleInstanceHandle() noexcept
  25. {
  26. if (currentModuleHandle == nullptr)
  27. currentModuleHandle = GetModuleHandleA (nullptr);
  28. return currentModuleHandle;
  29. }
  30. # ifndef STATIC_PLUGIN_TARGET
  31. CARLA_PLUGIN_EXPORT
  32. BOOL WINAPI DllMain (HINSTANCE hInst, DWORD reason, LPVOID)
  33. {
  34. if (reason == DLL_PROCESS_ATTACH)
  35. currentModuleHandle = hInst;
  36. return 1;
  37. }
  38. # endif
  39. #endif
  40. }
  41. #include "containers/NamedValueSet.cpp"
  42. #include "containers/Variant.cpp"
  43. #include "files/DirectoryIterator.cpp"
  44. #include "files/File.cpp"
  45. #include "files/FileInputStream.cpp"
  46. #include "files/FileOutputStream.cpp"
  47. #include "files/TemporaryFile.cpp"
  48. #include "maths/Random.cpp"
  49. #include "memory/MemoryBlock.cpp"
  50. #include "midi/MidiBuffer.cpp"
  51. #include "midi/MidiFile.cpp"
  52. #include "midi/MidiMessage.cpp"
  53. #include "midi/MidiMessageSequence.cpp"
  54. #include "misc/Result.cpp"
  55. #include "misc/Time.cpp"
  56. #include "processors/AudioProcessor.cpp"
  57. #include "processors/AudioProcessorGraph.cpp"
  58. #include "streams/FileInputSource.cpp"
  59. #include "streams/InputStream.cpp"
  60. #include "streams/MemoryInputStream.cpp"
  61. #include "streams/MemoryOutputStream.cpp"
  62. #include "streams/OutputStream.cpp"
  63. #include "synthesisers/Synthesiser.cpp"
  64. #include "text/CharacterFunctions.cpp"
  65. #include "text/Identifier.cpp"
  66. #include "text/StringArray.cpp"
  67. #include "text/String.cpp"
  68. #include "threads/ChildProcess.cpp"
  69. #include "xml/XmlDocument.cpp"
  70. #include "xml/XmlElement.cpp"