pa_win_hostapis.c 3.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. #ifdef _WIN32
  2. /*
  3. * $Id: pa_win_hostapis.c 1728 2011-08-18 03:31:51Z rossb $
  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. * The text above constitutes the entire PortAudio license; however,
  30. * the PortAudio community also makes the following non-binding requests:
  31. *
  32. * Any person wishing to distribute modifications to the Software is
  33. * requested to send the modifications to the original developer so that
  34. * they can be incorporated into the canonical version. It is also
  35. * requested that these non-binding requests be included along with the
  36. * license above.
  37. */
  38. /** @file
  39. @ingroup win_src
  40. @brief Win32 host API initialization function table.
  41. */
  42. /* This is needed to make this source file depend on CMake option changes
  43. and at the same time make it transparent for clients not using CMake.
  44. */
  45. #ifdef PORTAUDIO_CMAKE_GENERATED
  46. #include "options_cmake.h"
  47. #endif
  48. #include "pa_hostapi.h"
  49. #ifdef __cplusplus
  50. extern "C"
  51. {
  52. #endif /* __cplusplus */
  53. PaError PaSkeleton_Initialize( PaUtilHostApiRepresentation **hostApi, PaHostApiIndex index );
  54. PaError PaWinMme_Initialize( PaUtilHostApiRepresentation **hostApi, PaHostApiIndex index );
  55. PaError PaWinDs_Initialize( PaUtilHostApiRepresentation **hostApi, PaHostApiIndex index );
  56. PaError PaAsio_Initialize( PaUtilHostApiRepresentation **hostApi, PaHostApiIndex index );
  57. PaError PaWinWdm_Initialize( PaUtilHostApiRepresentation **hostApi, PaHostApiIndex index );
  58. PaError PaWasapi_Initialize( PaUtilHostApiRepresentation **hostApi, PaHostApiIndex index );
  59. #ifdef __cplusplus
  60. }
  61. #endif /* __cplusplus */
  62. PaUtilHostApiInitializer *paHostApiInitializers[] =
  63. {
  64. PaWinMme_Initialize, // 0 ppgb
  65. //PaWinDs_Initialize, // 1 ppgb
  66. //PaWinWdm_Initialize, // 2 ppgb
  67. //PaAsio_Initialize,
  68. //PaWinWasapi_Initialize,
  69. 0 /* NULL terminated array */
  70. };
  71. int paDefaultHostApiIndex = 0; // ppgb
  72. #endif