~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~ [ freetext search ] ~ [ file search ] ~

Linux Cross Reference
JACK/jack/hardware.h


** Warning: Cannot open xref database.

1 /* 2 Copyright (C) 2001 Paul Davis 3 4 This program is free software; you can redistribute it and/or modify 5 it under the terms of the GNU General Public License as published by 6 the Free Software Foundation; either version 2 of the License, or 7 (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 12 GNU General Public License for more details. 13 14 You should have received a copy of the GNU General Public License 15 along with this program; if not, write to the Free Software 16 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 17 18 $Id: hardware.h,v 1.4 2003/03/20 20:49:16 pbd Exp $ 19 */ 20 21 #ifndef __jack_hardware_h__ 22 #define __jack_hardware_h__ 23 24 #include <jack/types.h> 25 26 typedef enum { 27 AutoSync, 28 WordClock, 29 ClockMaster 30 } SampleClockMode; 31 32 typedef enum { 33 Cap_HardwareMonitoring = 0x1, 34 Cap_AutoSync = 0x2, 35 Cap_WordClock = 0x4, 36 Cap_ClockMaster = 0x8, 37 Cap_ClockLockReporting = 0x10, 38 Cap_HardwareMetering = 0x20 39 } Capabilities; 40 41 struct _jack_hardware; 42 43 typedef void (*JackHardwareReleaseFunction)(struct _jack_hardware *); 44 typedef int (*JackHardwareSetInputMonitorMaskFunction)(struct _jack_hardware *, unsigned long); 45 typedef int (*JackHardwareChangeSampleClockFunction)(struct _jack_hardware *, SampleClockMode); 46 typedef double (*JackHardwareGetHardwarePeak)(jack_port_t *port, jack_nframes_t frames); 47 typedef double (*JackHardwareGetHardwarePower)(jack_port_t *port, jack_nframes_t frames); 48 49 50 typedef struct _jack_hardware { 51 52 unsigned long capabilities; 53 unsigned long input_monitor_mask; 54 55 JackHardwareChangeSampleClockFunction change_sample_clock; 56 JackHardwareSetInputMonitorMaskFunction set_input_monitor_mask; 57 JackHardwareReleaseFunction release; 58 JackHardwareGetHardwarePeak get_hardware_peak; 59 JackHardwareGetHardwarePower get_hardware_power; 60 void *private; 61 62 } jack_hardware_t; 63 64 jack_hardware_t * jack_hardware_new (); 65 66 #endif /* __jack_hardware_h__ */ 67

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~ [ freetext search ] ~ [ file search ] ~

This page was automatically generated by the LXR engine.
Visit the LXR main site for more information.