PortAudio  2.0
pa_hostapi.h
Go to the documentation of this file.
1 #ifndef PA_HOSTAPI_H
2 #define PA_HOSTAPI_H
3 /*
4  * $Id: pa_hostapi.h 1634 2011-03-04 04:12:08Z rossb $
5  * Portable Audio I/O Library
6  * host api representation
7  *
8  * Based on the Open Source API proposed by Ross Bencina
9  * Copyright (c) 1999-2008 Ross Bencina, Phil Burk
10  *
11  * Permission is hereby granted, free of charge, to any person obtaining
12  * a copy of this software and associated documentation files
13  * (the "Software"), to deal in the Software without restriction,
14  * including without limitation the rights to use, copy, modify, merge,
15  * publish, distribute, sublicense, and/or sell copies of the Software,
16  * and to permit persons to whom the Software is furnished to do so,
17  * subject to the following conditions:
18  *
19  * The above copyright notice and this permission notice shall be
20  * included in all copies or substantial portions of the Software.
21  *
22  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
23  * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
24  * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
25  * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR
26  * ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
27  * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
28  * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
29  */
30 
31 /*
32  * The text above constitutes the entire PortAudio license; however,
33  * the PortAudio community also makes the following non-binding requests:
34  *
35  * Any person wishing to distribute modifications to the Software is
36  * requested to send the modifications to the original developer so that
37  * they can be incorporated into the canonical version. It is also
38  * requested that these non-binding requests be included along with the
39  * license above.
40  */
41 
49 #include "portaudio.h"
50 
63 #ifndef PA_USE_SKELETON
64 #define PA_USE_SKELETON 0
65 #elif (PA_USE_SKELETON != 0) && (PA_USE_SKELETON != 1)
66 #undef PA_USE_SKELETON
67 #define PA_USE_SKELETON 1
68 #endif
69 
70 #if defined(PA_NO_ASIO) || defined(PA_NO_DS) || defined(PA_NO_WMME) || defined(PA_NO_WASAPI) || defined(PA_NO_WDMKS)
71 #error "Portaudio: PA_NO_<APINAME> is no longer supported, please remove definition and use PA_USE_<APINAME> instead"
72 #endif
73 
74 #ifndef PA_USE_ASIO
75 #define PA_USE_ASIO 0
76 #elif (PA_USE_ASIO != 0) && (PA_USE_ASIO != 1)
77 #undef PA_USE_ASIO
78 #define PA_USE_ASIO 1
79 #endif
80 
81 #ifndef PA_USE_DS
82 #define PA_USE_DS 0
83 #elif (PA_USE_DS != 0) && (PA_USE_DS != 1)
84 #undef PA_USE_DS
85 #define PA_USE_DS 1
86 #endif
87 
88 #ifndef PA_USE_WMME
89 #define PA_USE_WMME 0
90 #elif (PA_USE_WMME != 0) && (PA_USE_WMME != 1)
91 #undef PA_USE_WMME
92 #define PA_USE_WMME 1
93 #endif
94 
95 #ifndef PA_USE_WASAPI
96 #define PA_USE_WASAPI 0
97 #elif (PA_USE_WASAPI != 0) && (PA_USE_WASAPI != 1)
98 #undef PA_USE_WASAPI
99 #define PA_USE_WASAPI 1
100 #endif
101 
102 #ifndef PA_USE_WDMKS
103 #define PA_USE_WDMKS 0
104 #elif (PA_USE_WDMKS != 0) && (PA_USE_WDMKS != 1)
105 #undef PA_USE_WDMKS
106 #define PA_USE_WDMKS 1
107 #endif
108 
109 #ifdef __cplusplus
110 extern "C"
111 {
112 #endif /* __cplusplus */
113 
114 
121 
122 
123  unsigned long baseDeviceIndex;
125 
126 
136 {
137  unsigned long size;
139  unsigned long version;
141 
142 
143 
149 
158 
160 
166  void (*Terminate)( struct PaUtilHostApiRepresentation *hostApi );
167 
264  PaStream** stream,
265  const PaStreamParameters *inputParameters,
266  const PaStreamParameters *outputParameters,
267  double sampleRate,
268  unsigned long framesPerCallback,
269  PaStreamFlags streamFlags,
270  PaStreamCallback *streamCallback,
271  void *userData );
272 
273 
275  const PaStreamParameters *inputParameters,
276  const PaStreamParameters *outputParameters,
277  double sampleRate );
279 
280 
293 
294 
303 
304 
310 extern int paDefaultHostApiIndex;
311 
312 
313 #ifdef __cplusplus
314 }
315 #endif /* __cplusplus */
316 #endif /* PA_HOSTAPI_H */

Generated for PortAudio by  doxygen1.8.1.1