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 1.9KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. /*
  2. * Carla JACK API for external applications
  3. * Copyright (C) 2016-2019 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_BUFFERS_CHANNEL_MIXDOWN = 0x20,
  30. };
  31. enum SessionManager {
  32. LIBJACK_SESSION_MANAGER_NONE = 0,
  33. LIBJACK_SESSION_MANAGER_AUTO = 1,
  34. LIBJACK_SESSION_MANAGER_JACK = 2,
  35. LIBJACK_SESSION_MANAGER_LADISH = 3,
  36. LIBJACK_SESSION_MANAGER_NSM = 4,
  37. };
  38. enum InterposerAction {
  39. LIBJACK_INTERPOSER_ACTION_NONE = 0,
  40. LIBJACK_INTERPOSER_ACTION_SET_HINTS_AND_CALLBACK,
  41. LIBJACK_INTERPOSER_ACTION_SET_SESSION_MANAGER,
  42. LIBJACK_INTERPOSER_ACTION_SHOW_HIDE_GUI,
  43. LIBJACK_INTERPOSER_ACTION_CLOSE_EVERYTHING,
  44. };
  45. enum InterposerCallbacks {
  46. LIBJACK_INTERPOSER_CALLBACK_NONE = 0,
  47. LIBJACK_INTERPOSER_CALLBACK_UI_HIDE,
  48. };
  49. typedef int (*CarlaInterposedCallback)(int, void*);
  50. int jack_carla_interposed_action(uint action, uint value, void* ptr);
  51. #ifdef __cplusplus
  52. }
  53. #endif
  54. #endif // CARLA_LIBJACK_HINTS_H_INCLUDED