jack1 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.

73 lines
2.0KB

  1. /*
  2. Copyright (C) 2001 Paul Davis
  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. $Id$
  15. */
  16. #ifndef __jack_engine_types_h__
  17. #define __jack_engine_types_h__
  18. #include <limits.h>
  19. typedef float sample_t;
  20. typedef unsigned long nframes_t;
  21. typedef long jack_port_id_t;
  22. typedef unsigned long jack_client_id_t;
  23. typedef float gain_t;
  24. typedef long channel_t;
  25. static const nframes_t max_frames = ULONG_MAX;
  26. typedef int (*JackProcessCallback)(nframes_t, void *);
  27. typedef int (*JackBufferSizeCallback)(nframes_t, void *);
  28. typedef int (*JackSampleRateCallback)(nframes_t, void *);
  29. typedef void (*JackPortRegistrationCallback)(jack_port_id_t,int,void*);
  30. #define NoChannel -1
  31. #define NoPort -1
  32. typedef struct _jack_engine jack_engine_t;
  33. typedef struct _jack_port jack_port_t;
  34. typedef struct _jack_client jack_client_t;
  35. #define JACK_PORT_NAME_SIZE 32
  36. #define JACK_PORT_TYPE_SIZE 32
  37. #define JACK_CLIENT_NAME_SIZE 32
  38. typedef enum {
  39. Cap_HardwareMonitoring = 0x1,
  40. Cap_AutoSync = 0x2,
  41. Cap_WordClock = 0x4,
  42. Cap_ClockMaster = 0x8,
  43. Cap_ClockLockReporting = 0x10
  44. } Capabilities;
  45. typedef enum {
  46. AutoSync,
  47. WordClock,
  48. ClockMaster
  49. } SampleClockMode;
  50. typedef enum {
  51. Lock = 0x1,
  52. NoLock = 0x2,
  53. Sync = 0x4,
  54. NoSync = 0x8
  55. } ClockSyncStatus;
  56. #endif /* __jack_engine_types_h__ */