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.

__init__.py 2.0KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. #!/usr/bin/env python3
  2. # -*- coding: utf-8 -*-
  3. # Common Carla code
  4. # Copyright (C) 2011-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. # Imports (Global)
  19. from platform import architecture
  20. from sys import platform, maxsize
  21. # ---------------------------------------------------------------------------------------------------------------------
  22. # Set Version
  23. VERSION = "2.6.0-alpha1"
  24. # ---------------------------------------------------------------------------------------------------------------------
  25. # 64bit check
  26. kIs64bit = bool(architecture()[0] == "64bit" and maxsize > 2**32)
  27. # ---------------------------------------------------------------------------------------------------------------------
  28. # Set Platform
  29. if platform == "darwin":
  30. HAIKU = False
  31. LINUX = False
  32. MACOS = True
  33. WINDOWS = False
  34. elif "haiku" in platform:
  35. HAIKU = True
  36. LINUX = False
  37. MACOS = False
  38. WINDOWS = False
  39. elif "linux" in platform:
  40. HAIKU = False
  41. LINUX = True
  42. MACOS = False
  43. WINDOWS = False
  44. elif platform in ("win32", "win64", "cygwin"):
  45. HAIKU = False
  46. LINUX = False
  47. MACOS = False
  48. WINDOWS = True
  49. else:
  50. HAIKU = False
  51. LINUX = False
  52. MACOS = False
  53. WINDOWS = False
  54. # ---------------------------------------------------------------------------------------------------------------------