JACK API headers
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.

55 lines
1.8KB

  1. /*
  2. Copyright (C) 2004 Rui Nuno Capela, Lee Revell
  3. This program is free software; you can redistribute it and/or modify
  4. it under the terms of the GNU Lesser General Public License as published by
  5. the Free Software Foundation; either version 2.1 of the License, or
  6. (at your option) any later version.
  7. This program is distributed in the hope that it will be useful,
  8. but WITHOUT ANY WARRANTY; without even the implied warranty of
  9. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  10. GNU Lesser General Public License for more details.
  11. You should have received a copy of the GNU Lesser General Public License
  12. along with this program; if not, write to the Free Software
  13. Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  14. */
  15. #ifndef JACK_STATISTICS_H
  16. #define JACK_STATISTICS_H
  17. #ifdef __cplusplus
  18. extern "C" {
  19. #endif
  20. #include <jack/types.h>
  21. /**
  22. * @return the maximum delay reported by the backend since
  23. * startup or reset. When compared to the period size in usecs, this
  24. * can be used to estimate the ideal period size for a given setup.
  25. */
  26. float jack_get_max_delayed_usecs (jack_client_t *client);
  27. /**
  28. * @return the delay in microseconds due to the most recent XRUN
  29. * occurrence. This probably only makes sense when called from a @ref
  30. * JackXRunCallback defined using jack_set_xrun_callback().
  31. */
  32. float jack_get_xrun_delayed_usecs (jack_client_t *client);
  33. /**
  34. * Reset the maximum delay counter. This would be useful
  35. * to estimate the effect that a change to the configuration of a running
  36. * system (e.g. toggling kernel preemption) has on the delay
  37. * experienced by JACK, without having to restart the JACK engine.
  38. */
  39. void jack_reset_max_delayed_usecs (jack_client_t *client);
  40. #ifdef __cplusplus
  41. }
  42. #endif
  43. #endif /* JACK_STATISTICS_H */