annotate src/portaudio/src/os/win/pa_win_hostapis.c @ 124:e3d5853d5918

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