jack2 codebase
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.

60 lines
1.9KB

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