Debian Codegraph @

external/portaudio/pa_win_hostapis.c

raw symbols SCIP
1 #ifdef _WIN32
2 /*
3 * $Id$
4 * Portable Audio I/O Library Windows initialization table
5 *
6 * Based on the Open Source API proposed by Ross Bencina
7 * Copyright (c) 1999-2008 Ross Bencina, Phil Burk
8 *
9 * Permission is hereby granted, free of charge, to any person obtaining
10 * a copy of this software and associated documentation files
11 * (the "Software"), to deal in the Software without restriction,
12 * including without limitation the rights to use, copy, modify, merge,
13 * publish, distribute, sublicense, and/or sell copies of the Software,
14 * and to permit persons to whom the Software is furnished to do so,
15 * subject to the following conditions:
16 *
17 * The above copyright notice and this permission notice shall be
18 * included in all copies or substantial portions of the Software.
19 *
20 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
21 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
22 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
23 * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR
24 * ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
25 * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
26 * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
27 */
28
29 /*
30 * The text above constitutes the entire PortAudio license; however,
31 * the PortAudio community also makes the following non-binding requests:
32 *
33 * Any person wishing to distribute modifications to the Software is
34 * requested to send the modifications to the original developer so that
35 * they can be incorporated into the canonical version. It is also
36 * requested that these non-binding requests be included along with the
37 * license above.
38 */
39
40 /** @file
41 @ingroup win_src
42
43 @brief Win32 host API initialization function table.
44 */
45
46 /* This is needed to make this source file depend on CMake option changes
47 and at the same time make it transparent for clients not using CMake.
48 */
49 #ifdef PORTAUDIO_CMAKE_GENERATED
50 #include "options_cmake.h"
51 #endif
52
53 #include "pa_hostapi.h"
54
55
56 #ifdef __cplusplus
57 extern "C"
58 {
59 #endif /* __cplusplus */
60
61 PaError PaSkeleton_Initialize( PaUtilHostApiRepresentation **hostApi, PaHostApiIndex index );
62 PaError PaWinMme_Initialize( PaUtilHostApiRepresentation **hostApi, PaHostApiIndex index );
63 PaError PaWinDs_Initialize( PaUtilHostApiRepresentation **hostApi, PaHostApiIndex index );
64 PaError PaAsio_Initialize( PaUtilHostApiRepresentation **hostApi, PaHostApiIndex index );
65 PaError PaWinWdm_Initialize( PaUtilHostApiRepresentation **hostApi, PaHostApiIndex index );
66 PaError PaWasapi_Initialize( PaUtilHostApiRepresentation **hostApi, PaHostApiIndex index );
67
68 #ifdef __cplusplus
69 }
70 #endif /* __cplusplus */
71
72
73 PaUtilHostApiInitializer *paHostApiInitializers[] =
74 {
75
76 PaWinMme_Initialize, // 0 ppgb
77 //PaWinDs_Initialize, // 1 ppgb
78 //PaWinWdm_Initialize, // 2 ppgb
79 //PaAsio_Initialize, // 3 ppgb
80 //PaWinWasapi_Initialize, // 4 ppgb
81
82 #if 0 // ppgb
83
84 #if PA_USE_WMME
85 PaWinMme_Initialize,
86 #endif
87
88 #if PA_USE_DS
89 PaWinDs_Initialize,
90 #endif
91
92 #if PA_USE_ASIO
93 PaAsio_Initialize,
94 #endif
95
96 #if PA_USE_WASAPI
97 PaWasapi_Initialize,
98 #endif
99
100 #if PA_USE_WDMKS
101 PaWinWdm_Initialize,
102 #endif
103
104 #if PA_USE_SKELETON
105 PaSkeleton_Initialize, /* just for testing. last in list so it isn't marked as default. */
106 #endif
107
108 #endif // ppgb
109
110 0 /* NULL terminated array */
111 };
112
113 int paDefaultHostApiIndex = 0; // ppgb
114 #endif