| 1 |
#ifdef UNIX |
| 2 |
/* |
| 3 |
* $Id$ |
| 4 |
* Portable Audio I/O Library UNIX initialization table |
| 5 |
* |
| 6 |
* Based on the Open Source API proposed by Ross Bencina |
| 7 |
* Copyright (c) 1999-2002 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 unix_src |
| 42 |
*/ |
| 43 |
|
| 44 |
#include "pa_hostapi.h" |
| 45 |
|
| 46 |
PaError PaJack_Initialize( PaUtilHostApiRepresentation **hostApi, PaHostApiIndex index ); |
| 47 |
PaError PaAlsa_Initialize( PaUtilHostApiRepresentation **hostApi, PaHostApiIndex index ); |
| 48 |
PaError PaOSS_Initialize( PaUtilHostApiRepresentation **hostApi, PaHostApiIndex index ); |
| 49 |
/* Added for IRIX, Pieter, oct 2, 2003: */ |
| 50 |
PaError PaSGI_Initialize( PaUtilHostApiRepresentation **hostApi, PaHostApiIndex index ); |
| 51 |
/* Linux AudioScience HPI */ |
| 52 |
PaError PaAsiHpi_Initialize( PaUtilHostApiRepresentation **hostApi, PaHostApiIndex index ); |
| 53 |
PaError PaMacCore_Initialize( PaUtilHostApiRepresentation **hostApi, PaHostApiIndex index ); |
| 54 |
PaError PaSkeleton_Initialize( PaUtilHostApiRepresentation **hostApi, PaHostApiIndex index ); |
| 55 |
|
| 56 |
/** Note that on Linux, ALSA is placed before OSS so that the former is preferred over the latter. |
| 57 |
*/ |
| 58 |
|
| 59 |
PaUtilHostApiInitializer *paHostApiInitializers[] = |
| 60 |
{ |
| 61 |
#if defined (linux) // ppgb |
| 62 |
#if defined (ALSA) // ppgb |
| 63 |
PaAlsa_Initialize, // ppgb |
| 64 |
#endif |
| 65 |
#if defined (JACK) // ppgb |
| 66 |
PaJack_Initialize, // ppgb |
| 67 |
#endif // ppgb |
| 68 |
#endif // ppgb |
| 69 |
|
| 70 |
#if 0 // ppgb |
| 71 |
|
| 72 |
#ifdef __linux__ |
| 73 |
|
| 74 |
#if PA_USE_ALSA |
| 75 |
PaAlsa_Initialize, |
| 76 |
#endif |
| 77 |
|
| 78 |
#if PA_USE_OSS |
| 79 |
PaOSS_Initialize, |
| 80 |
#endif |
| 81 |
|
| 82 |
#else /* __linux__ */ |
| 83 |
|
| 84 |
#if PA_USE_OSS |
| 85 |
PaOSS_Initialize, |
| 86 |
#endif |
| 87 |
|
| 88 |
#if PA_USE_ALSA |
| 89 |
PaAlsa_Initialize, |
| 90 |
#endif |
| 91 |
|
| 92 |
#endif /* __linux__ */ |
| 93 |
|
| 94 |
#if PA_USE_JACK |
| 95 |
PaJack_Initialize, |
| 96 |
#endif |
| 97 |
/* Added for IRIX, Pieter, oct 2, 2003: */ |
| 98 |
#if PA_USE_SGI |
| 99 |
PaSGI_Initialize, |
| 100 |
#endif |
| 101 |
|
| 102 |
#if PA_USE_ASIHPI |
| 103 |
PaAsiHpi_Initialize, |
| 104 |
#endif |
| 105 |
|
| 106 |
#if PA_USE_COREAUDIO |
| 107 |
PaMacCore_Initialize, |
| 108 |
#endif |
| 109 |
|
| 110 |
#if PA_USE_SKELETON |
| 111 |
PaSkeleton_Initialize, |
| 112 |
#endif |
| 113 |
|
| 114 |
#endif // ppgb |
| 115 |
|
| 116 |
0 /* NULL terminated array */ |
| 117 |
}; |
| 118 |
|
| 119 |
int paDefaultHostApiIndex = 0; // ppgb |
| 120 |
#endif |