~ubuntu-branches/ubuntu/lucid/jack-audio-connection-kit/lucid

« back to all changes in this revision

Viewing changes to jack/hardware.h

  • Committer: Bazaar Package Importer
  • Author(s): Luca Falavigna
  • Date: 2008-12-06 11:05:15 UTC
  • mfrom: (4.1.3 sid)
  • Revision ID: james.westby@ubuntu.com-20081206110515-xa9v9pajr9jqvfvg
Tags: 0.115.6-1ubuntu1
* Merge from Debian unstable, remaining Ubuntu changes:
  - Redirect stderr in bash completion (Debian #504488).

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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
*/
 
19
 
 
20
#ifndef __jack_hardware_h__
 
21
#define __jack_hardware_h__
 
22
 
 
23
#include <jack/types.h>
 
24
 
 
25
typedef enum  {
 
26
        AutoSync,
 
27
        WordClock,
 
28
        ClockMaster
 
29
} SampleClockMode;
 
30
 
 
31
typedef enum {
 
32
        Cap_HardwareMonitoring = 0x1,
 
33
        Cap_AutoSync = 0x2,
 
34
        Cap_WordClock = 0x4,
 
35
        Cap_ClockMaster = 0x8,
 
36
        Cap_ClockLockReporting = 0x10,
 
37
        Cap_HardwareMetering = 0x20
 
38
} Capabilities;
 
39
 
 
40
struct _jack_hardware;
 
41
 
 
42
typedef void (*JackHardwareReleaseFunction)(struct _jack_hardware *);
 
43
typedef int (*JackHardwareSetInputMonitorMaskFunction)(struct _jack_hardware *, unsigned long);
 
44
typedef int (*JackHardwareChangeSampleClockFunction)(struct _jack_hardware *, SampleClockMode);
 
45
typedef double (*JackHardwareGetHardwarePeak)(jack_port_t *port, jack_nframes_t frames);
 
46
typedef double (*JackHardwareGetHardwarePower)(jack_port_t *port, jack_nframes_t frames);
 
47
 
 
48
 
 
49
typedef struct _jack_hardware {
 
50
 
 
51
    unsigned long capabilities;
 
52
    unsigned long input_monitor_mask;
 
53
 
 
54
    JackHardwareChangeSampleClockFunction change_sample_clock;
 
55
    JackHardwareSetInputMonitorMaskFunction set_input_monitor_mask;
 
56
    JackHardwareReleaseFunction release;
 
57
    JackHardwareGetHardwarePeak get_hardware_peak;
 
58
    JackHardwareGetHardwarePower get_hardware_power;
 
59
    void *private;
 
60
 
 
61
} jack_hardware_t;
 
62
 
 
63
jack_hardware_t * jack_hardware_new ();
 
64
 
 
65
#endif /* __jack_hardware_h__ */