Jack2  1.9.9
usx2y.h
1 /*
2  Copyright (C) 2001 Paul Davis
3  Copyright (C) 2004 Karsten Wiese, Rui Nuno Capela
4 
5  This program is free software; you can redistribute it and/or modify
6  it under the terms of the GNU General Public License as published by
7  the Free Software Foundation; either version 2 of the License, or
8  (at your option) any later version.
9 
10  This program is distributed in the hope that it will be useful,
11  but WITHOUT ANY WARRANTY; without even the implied warranty of
12  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  GNU General Public License for more details.
14 
15  You should have received a copy of the GNU General Public License
16  along with this program; if not, write to the Free Software
17  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
18 
19  $Id: usx2y.h 855 2004-12-28 05:50:18Z joq $
20 */
21 
22 #ifndef __jack_usx2y_h__
23 #define __jack_usx2y_h__
24 
25 #define USX2Y_MAXPACK 50
26 #define USX2Y_MAXBUFFERMS 100
27 #define USX2Y_MAXSTRIDE 3
28 
29 #define USX2Y_SSS (((USX2Y_MAXPACK * USX2Y_MAXBUFFERMS * USX2Y_MAXSTRIDE + 4096) / 4096) * 4096)
30 
32 {
33  char playback[USX2Y_SSS];
34  char capture0x8[USX2Y_SSS];
35  char capture0xA[USX2Y_SSS];
36  volatile int playback_iso_head;
37  int playback_iso_start;
38  struct
39  {
40  int frame,
41  offset,
42  length;
43  }
44  captured_iso[128];
45  volatile int captured_iso_head;
46  volatile unsigned captured_iso_frames;
47  int capture_iso_start;
48 };
50 
51 typedef struct
52 {
53  alsa_driver_t *driver;
54  snd_hwdep_t *hwdep_handle;
55  struct pollfd pfds;
56  struct snd_usX2Y_hwdep_pcm_shm *hwdep_pcm_shm;
57  int playback_iso_start;
58  int playback_iso_bytes_done;
59  int capture_iso_start;
60  int capture_iso_bytes_done;
61 }
62 usx2y_t;
63 
65 jack_alsa_usx2y_hw_new (alsa_driver_t *driver);
66 
67 #endif /* __jack_usx2y_h__*/
Definition: usx2y.h:51