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.

CarlaLibJackHints.h 2.0KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. /*
  2. * Carla JACK API for external applications
  3. * Copyright (C) 2016-2020 Filipe Coelho <falktx@falktx.com>
  4. *
  5. * This program is free software; you can redistribute it and/or
  6. * modify it under the terms of the GNU General Public License as
  7. * published by the Free Software Foundation; either version 2 of
  8. * the License, or any later version.
  9. *
  10. * This program is distributed in the hope that it will be useful,
  11. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. * GNU General Public License for more details.
  14. *
  15. * For a full copy of the GNU General Public License see the doc/GPL.txt file.
  16. */
  17. #ifndef CARLA_LIBJACK_HINTS_H_INCLUDED
  18. #define CARLA_LIBJACK_HINTS_H_INCLUDED
  19. #include "CarlaDefines.h"
  20. #ifdef __cplusplus
  21. extern "C" {
  22. #endif
  23. enum SetupHints {
  24. // Application Window management
  25. LIBJACK_FLAG_CONTROL_WINDOW = 0x01,
  26. LIBJACK_FLAG_CAPTURE_FIRST_WINDOW = 0x02,
  27. // Audio/MIDI Buffers management
  28. LIBJACK_FLAG_AUDIO_BUFFERS_ADDITION = 0x10,
  29. LIBJACK_FLAG_MIDI_OUTPUT_CHANNEL_MIXDOWN = 0x20,
  30. // Developer options, not saved on disk
  31. LIBJACK_FLAG_EXTERNAL_START = 0x40,
  32. };
  33. enum SessionManager {
  34. LIBJACK_SESSION_MANAGER_NONE = 0,
  35. LIBJACK_SESSION_MANAGER_AUTO = 1,
  36. LIBJACK_SESSION_MANAGER_JACK = 2,
  37. LIBJACK_SESSION_MANAGER_LADISH = 3,
  38. LIBJACK_SESSION_MANAGER_NSM = 4,
  39. };
  40. enum InterposerAction {
  41. LIBJACK_INTERPOSER_ACTION_NONE = 0,
  42. LIBJACK_INTERPOSER_ACTION_SET_HINTS_AND_CALLBACK,
  43. LIBJACK_INTERPOSER_ACTION_SET_SESSION_MANAGER,
  44. LIBJACK_INTERPOSER_ACTION_SHOW_HIDE_GUI,
  45. LIBJACK_INTERPOSER_ACTION_CLOSE_EVERYTHING,
  46. };
  47. enum InterposerCallbacks {
  48. LIBJACK_INTERPOSER_CALLBACK_NONE = 0,
  49. LIBJACK_INTERPOSER_CALLBACK_UI_HIDE,
  50. };
  51. typedef int (*CarlaInterposedCallback)(int, void*);
  52. CARLA_API
  53. int jack_carla_interposed_action(uint action, uint value, void* ptr);
  54. #ifdef __cplusplus
  55. }
  56. #endif
  57. #endif // CARLA_LIBJACK_HINTS_H_INCLUDED