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.

64 lines
2.0KB

  1. #!/usr/bin/env python3
  2. # SPDX-FileCopyrightText: 2011-2024 Filipe Coelho <falktx@falktx.com>
  3. # SPDX-License-Identifier: GPL-2.0-or-later
  4. # ----------------------------------------------------------------------------------------------------------------------
  5. # Imports (Custom Stuff)
  6. from carla_app import (
  7. CarlaApplication,
  8. )
  9. from carla_host import (
  10. HostWindow,
  11. initHost,
  12. loadHostSettings,
  13. )
  14. from carla_shared import (
  15. handleInitialCommandLineArguments,
  16. setUpSignals,
  17. )
  18. # ----------------------------------------------------------------------------------------------------------------------
  19. # Main
  20. if __name__ == '__main__':
  21. import resources_rc
  22. # ------------------------------------------------------------------------------------------------------------------
  23. # Read CLI args
  24. initName, libPrefix = handleInitialCommandLineArguments(__file__ if "__file__" in dir() else None)
  25. # ------------------------------------------------------------------------------------------------------------------
  26. # App initialization
  27. app = CarlaApplication("Carla2", libPrefix)
  28. # ------------------------------------------------------------------------------------------------------------------
  29. # Set-up custom signal handling
  30. setUpSignals()
  31. # ------------------------------------------------------------------------------------------------------------------
  32. # Init host backend
  33. host = initHost(initName, libPrefix, False, False, True)
  34. loadHostSettings(host)
  35. # ------------------------------------------------------------------------------------------------------------------
  36. # Create GUI
  37. gui = HostWindow(host, True)
  38. # ------------------------------------------------------------------------------------------------------------------
  39. # Show GUI
  40. gui.showIfNeeded()
  41. # ------------------------------------------------------------------------------------------------------------------
  42. # App-Loop
  43. app.exit_exec()