| 1 | /* |
| 2 | * $Id: pa_mac_hostapis.c,v 1.1 2006/06/10 21:30:56 dmazzoni Exp $ |
| 3 | * Portable Audio I/O Library Windows initialization table |
| 4 | * |
| 5 | * Based on the Open Source API proposed by Ross Bencina |
| 6 | * Copyright (c) 1999-2002 Ross Bencina, Phil Burk |
| 7 | * |
| 8 | * Permission is hereby granted, free of charge, to any person obtaining |
| 9 | * a copy of this software and associated documentation files |
| 10 | * (the "Software"), to deal in the Software without restriction, |
| 11 | * including without limitation the rights to use, copy, modify, merge, |
| 12 | * publish, distribute, sublicense, and/or sell copies of the Software, |
| 13 | * and to permit persons to whom the Software is furnished to do so, |
| 14 | * subject to the following conditions: |
| 15 | * |
| 16 | * The above copyright notice and this permission notice shall be |
| 17 | * included in all copies or substantial portions of the Software. |
| 18 | * |
| 19 | * Any person wishing to distribute modifications to the Software is |
| 20 | * requested to send the modifications to the original developer so that |
| 21 | * they can be incorporated into the canonical version. |
| 22 | * |
| 23 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, |
| 24 | * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF |
| 25 | * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. |
| 26 | * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR |
| 27 | * ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF |
| 28 | * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION |
| 29 | * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
| 30 | */ |
| 31 | |
| 32 | /** @file |
| 33 | Mac OS host API initialization function table. |
| 34 | */ |
| 35 | |
| 36 | |
| 37 | #include "pa_hostapi.h" |
| 38 | |
| 39 | #ifdef __cplusplus |
| 40 | extern "C" |
| 41 | { |
| 42 | #endif /* __cplusplus */ |
| 43 | |
| 44 | PaError PaSkeleton_Initialize( PaUtilHostApiRepresentation **hostApi, PaHostApiIndex index ); |
| 45 | PaError PaMacCore_Initialize( PaUtilHostApiRepresentation **hostApi, PaHostApiIndex index ); |
| 46 | PaError PaMacSm_Initialize( PaUtilHostApiRepresentation **hostApi, PaHostApiIndex index ); |
| 47 | PaError PaJack_Initialize( PaUtilHostApiRepresentation **hostApi, PaHostApiIndex index ); |
| 48 | PaError PaMacAsio_Initialize( PaUtilHostApiRepresentation **hostApi, PaHostApiIndex index ); |
| 49 | |
| 50 | #ifdef __cplusplus |
| 51 | } |
| 52 | #endif /* __cplusplus */ |
| 53 | |
| 54 | |
| 55 | PaUtilHostApiInitializer *paHostApiInitializers[] = |
| 56 | { |
| 57 | #ifdef PA_USE_COREAUDIO |
| 58 | PaMacCore_Initialize, |
| 59 | #endif |
| 60 | |
| 61 | #ifdef PA_USE_SM |
| 62 | PaMacSm_Initialize, |
| 63 | #endif |
| 64 | |
| 65 | #ifdef PA_USE_JACK |
| 66 | PaJack_Initialize, |
| 67 | #endif |
| 68 | |
| 69 | #ifdef PA_USE_ASIO |
| 70 | PaMacAsio_Initialize, |
| 71 | #endif |
| 72 | |
| 73 | PaSkeleton_Initialize, /* just for testing */ |
| 74 | |
| 75 | 0 /* NULL terminated array */ |
| 76 | }; |
| 77 | |
| 78 | |
| 79 | int paDefaultHostApiIndex = 0; |