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.

61 lines
2.5KB

  1. /*
  2. * Carla JACK API for external applications
  3. * Copyright (C) 2016-2017 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. // need to include this first
  18. #include "libjack.hpp"
  19. CARLA_BACKEND_USE_NAMESPACE
  20. // --------------------------------------------------------------------------------------------------------------------
  21. // int jack_set_latency_callback (jack_client_t *client,
  22. // JackLatencyCallback latency_callback,
  23. // void *) JACK_WEAK_EXPORT;
  24. // --------------------------------------------------------------------------------------------------------------------
  25. //void jack_port_set_latency (jack_port_t *port, jack_nframes_t) JACK_OPTIONAL_WEAK_DEPRECATED_EXPORT;
  26. // --------------------------------------------------------------------------------------------------------------------
  27. CARLA_EXPORT
  28. void jack_port_get_latency_range(jack_port_t*, jack_latency_callback_mode_t, jack_latency_range_t* range)
  29. {
  30. range->min = range->max = 0;
  31. }
  32. //void jack_port_set_latency_range (jack_port_t *port, jack_latency_callback_mode_t mode, jack_latency_range_t *range) JACK_WEAK_EXPORT;
  33. // --------------------------------------------------------------------------------------------------------------------
  34. //int jack_recompute_total_latencies (jack_client_t *client) JACK_OPTIONAL_WEAK_EXPORT;
  35. CARLA_EXPORT
  36. jack_nframes_t jack_port_get_latency(jack_port_t*)
  37. {
  38. return 0;
  39. }
  40. //jack_nframes_t jack_port_get_total_latency (jack_client_t *client,
  41. // jack_port_t *port) JACK_OPTIONAL_WEAK_DEPRECATED_EXPORT;
  42. // --------------------------------------------------------------------------------------------------------------------
  43. //int jack_recompute_total_latency (jack_client_t*, jack_port_t* port) JACK_OPTIONAL_WEAK_DEPRECATED_EXPORT;
  44. // --------------------------------------------------------------------------------------------------------------------