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.

57 lines
2.1KB

  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_host import *
  7. # ----------------------------------------------------------------------------------------------------------------------
  8. # Main
  9. if __name__ == '__main__':
  10. import resources_rc
  11. # ------------------------------------------------------------------------------------------------------------------
  12. # Read CLI args
  13. initName, libPrefix = handleInitialCommandLineArguments(__file__ if "__file__" in dir() else None)
  14. # ------------------------------------------------------------------------------------------------------------------
  15. # App initialization
  16. app = CarlaApplication("Carla2-Multi-Client", libPrefix)
  17. # ------------------------------------------------------------------------------------------------------------------
  18. # Set-up custom signal handling
  19. setUpSignals()
  20. # ------------------------------------------------------------------------------------------------------------------
  21. # Init host backend
  22. os.environ["CARLA_NSM_NAME"] = "Carla-Multi-Client"
  23. host = initHost(initName, libPrefix, False, False, True)
  24. host.audioDriverForced = "JACK"
  25. host.processMode = ENGINE_PROCESS_MODE_MULTIPLE_CLIENTS
  26. host.processModeForced = True
  27. host.transportMode = ENGINE_TRANSPORT_MODE_JACK
  28. loadHostSettings(host)
  29. # ------------------------------------------------------------------------------------------------------------------
  30. # Create GUI
  31. gui = HostWindow(host, True)
  32. # ------------------------------------------------------------------------------------------------------------------
  33. # Show GUI
  34. gui.showIfNeeded()
  35. # ------------------------------------------------------------------------------------------------------------------
  36. # App-Loop
  37. app.exit_exec()