PortAudio
2.0
|
Win32 host API initialization function table. More...
#include "pa_hostapi.h"
Functions | |
PaError | PaSkeleton_Initialize (PaUtilHostApiRepresentation **hostApi, PaHostApiIndex index) |
PaError | PaWinMme_Initialize (PaUtilHostApiRepresentation **hostApi, PaHostApiIndex index) |
PaError | PaWinDs_Initialize (PaUtilHostApiRepresentation **hostApi, PaHostApiIndex index) |
PaError | PaAsio_Initialize (PaUtilHostApiRepresentation **hostApi, PaHostApiIndex index) |
PaError | PaWinWdm_Initialize (PaUtilHostApiRepresentation **hostApi, PaHostApiIndex index) |
PaError | PaWasapi_Initialize (PaUtilHostApiRepresentation **hostApi, PaHostApiIndex index) |
Variables | |
PaUtilHostApiInitializer * | paHostApiInitializers [] |
Win32 host API initialization function table.
PaError PaAsio_Initialize | ( | PaUtilHostApiRepresentation ** | hostApi, |
PaHostApiIndex | index | ||
) |
References PaAsioHostApiRepresentation::allocations, asioDrivers, PaAsioHostApiRepresentation::asioDrivers, PaAsioHostApiRepresentation::blockingStreamInterface, PaAsioHostApiRepresentation::callbackStreamInterface, PaAsioHostApiRepresentation::comInitializationResult, PaAsioDeviceInfo::commonDeviceInfo, PaDeviceInfo::hostApi, PaUtilHostApiRepresentation::info, PaAsioHostApiRepresentation::inheritedHostApiRep, IsDebuggerPresent_, PaDeviceInfo::name, PaAsioHostApiRepresentation::openAsioDeviceIndex, PA_DEBUG, paASIO, paInsufficientMemory, paNoDevice, paNoError, PaUtil_AllocateMemory(), PaUtil_CreateAllocationGroup(), PaUtil_DestroyAllocationGroup(), PaUtil_DummyGetCpuLoad(), PaUtil_DummyGetReadAvailable(), PaUtil_DummyGetWriteAvailable(), PaUtil_DummyRead(), PaUtil_DummyWrite(), PaUtil_FreeAllAllocations(), PaUtil_FreeMemory(), PaUtil_GroupAllocateMemory(), PaUtil_InitializeStreamInterface(), PaWinUtil_CoInitialize(), PaWinUtil_CoUninitialize(), PaHostApiInfo::structVersion, PaDeviceInfo::structVersion, and PaAsioHostApiRepresentation::systemSpecific.
PaError PaSkeleton_Initialize | ( | PaUtilHostApiRepresentation ** | hostApi, |
PaHostApiIndex | index | ||
) |
References PaSkeletonHostApiRepresentation::allocations, PaSkeletonHostApiRepresentation::blockingStreamInterface, PaSkeletonHostApiRepresentation::callbackStreamInterface, PaDeviceInfo::defaultHighInputLatency, PaDeviceInfo::defaultHighOutputLatency, PaDeviceInfo::defaultLowInputLatency, PaDeviceInfo::defaultLowOutputLatency, PaDeviceInfo::defaultSampleRate, GetStreamReadAvailable(), GetStreamWriteAvailable(), PaDeviceInfo::hostApi, PaUtilHostApiRepresentation::info, PaSkeletonHostApiRepresentation::inheritedHostApiRep, PaUtilHostApiRepresentation::IsFormatSupported, PaDeviceInfo::maxInputChannels, PaDeviceInfo::maxOutputChannels, PaDeviceInfo::name, PaUtilHostApiRepresentation::OpenStream, paInDevelopment, paInsufficientMemory, paNoDevice, paNoError, PaUtil_AllocateMemory(), PaUtil_CreateAllocationGroup(), PaUtil_DestroyAllocationGroup(), PaUtil_DummyGetCpuLoad(), PaUtil_DummyGetReadAvailable(), PaUtil_DummyGetWriteAvailable(), PaUtil_DummyRead(), PaUtil_DummyWrite(), PaUtil_FreeAllAllocations(), PaUtil_FreeMemory(), PaUtil_GroupAllocateMemory(), PaUtil_InitializeStreamInterface(), ReadStream(), PaHostApiInfo::structVersion, PaDeviceInfo::structVersion, PaUtilHostApiRepresentation::Terminate, and WriteStream().
PaError PaWasapi_Initialize | ( | PaUtilHostApiRepresentation ** | hostApi, |
PaHostApiIndex | index | ||
) |
References PaWasapiHostApiRepresentation::allocations, PaWasapiHostApiRepresentation::blockingStreamInterface, PaWasapiHostApiRepresentation::callbackStreamInterface, PaWasapiHostApiRepresentation::comInitializationResult, GetStreamReadAvailable(), GetStreamWriteAvailable(), PaUtilHostApiRepresentation::info, PaWasapiHostApiRepresentation::inheritedHostApiRep, Pa_GetErrorText(), paInsufficientMemory, paNoDevice, paNoError, PaUtil_AllocateMemory(), PaUtil_CreateAllocationGroup(), PaUtil_DummyGetCpuLoad(), PaUtil_DummyGetReadAvailable(), PaUtil_DummyGetWriteAvailable(), PaUtil_DummyRead(), PaUtil_DummyWrite(), PaUtil_InitializeStreamInterface(), paWASAPI, PaWinUtil_CoInitialize(), PRINT, ReadStream(), PaHostApiInfo::structVersion, PaWasapiHostApiRepresentation::useWOW64Workaround, and WriteStream().
PaError PaWinDs_Initialize | ( | PaUtilHostApiRepresentation ** | hostApi, |
PaHostApiIndex | index | ||
) |
References PaWinDsHostApiRepresentation::allocations, PaWinDsHostApiRepresentation::blockingStreamInterface, PaWinDsHostApiRepresentation::callbackStreamInterface, PaWinDsHostApiRepresentation::comInitializationResult, DSDeviceNameAndGUIDVector::count, DSDeviceNameAndGUIDVector::enumerationError, GetStreamReadAvailable(), GetStreamWriteAvailable(), PaDeviceInfo::hostApi, PaUtilHostApiRepresentation::info, PaWinDsDeviceInfo::inheritedDeviceInfo, PaWinDsHostApiRepresentation::inheritedHostApiRep, DSDeviceNamesAndGUIDs::inputNamesAndGUIDs, DSDeviceNameAndGUIDVector::items, DSDeviceNameAndGUID::lpGUID, DSDeviceNameAndGUID::name, PaDeviceInfo::name, DSDeviceNamesAndGUIDs::outputNamesAndGUIDs, paDirectSound, paInsufficientMemory, paNoDevice, paNoError, PaUtil_AllocateMemory(), PaUtil_CreateAllocationGroup(), PaUtil_DummyGetCpuLoad(), PaUtil_DummyGetReadAvailable(), PaUtil_DummyGetWriteAvailable(), PaUtil_DummyRead(), PaUtil_DummyWrite(), PaUtil_GroupAllocateMemory(), PaUtil_InitializeStreamInterface(), PaWinDs_InitializeDSoundEntryPoints(), paWinDsDSoundEntryPoints, PaWinUtil_CoInitialize(), DSDeviceNameAndGUID::pnpInterface, ReadStream(), PaHostApiInfo::structVersion, PaDeviceInfo::structVersion, DSDeviceNamesAndGUIDs::winDsHostApi, and WriteStream().
PaError PaWinMme_Initialize | ( | PaUtilHostApiRepresentation ** | hostApi, |
PaHostApiIndex | index | ||
) |
References PaWinMmeHostApiRepresentation::allocations, PaWinMmeHostApiRepresentation::blockingStreamInterface, PaWinMmeHostApiRepresentation::callbackStreamInterface, PaDeviceInfo::defaultHighInputLatency, PaDeviceInfo::defaultHighOutputLatency, PaDeviceInfo::defaultLowInputLatency, PaDeviceInfo::defaultLowOutputLatency, PaWinMmeDeviceInfo::deviceInputChannelCountIsKnown, PaWinMmeDeviceInfo::deviceOutputChannelCountIsKnown, DRVM_MAPPER_PREFERRED_GET, DWORD_PTR, GetStreamReadAvailable(), GetStreamWriteAvailable(), PaDeviceInfo::hostApi, PaUtilHostApiRepresentation::info, PaWinMmeDeviceInfo::inheritedDeviceInfo, PaWinMmeHostApiRepresentation::inheritedHostApiRep, PaWinMmeHostApiRepresentation::inputDeviceCount, PaDeviceInfo::maxInputChannels, PaDeviceInfo::maxOutputChannels, PaWinMmeHostApiRepresentation::outputDeviceCount, paInsufficientMemory, paMME, paNoDevice, paNoError, PaUtil_AllocateMemory(), PaUtil_CreateAllocationGroup(), PaUtil_DestroyAllocationGroup(), PaUtil_DummyGetCpuLoad(), PaUtil_DummyGetReadAvailable(), PaUtil_DummyGetWriteAvailable(), PaUtil_DummyRead(), PaUtil_DummyWrite(), PaUtil_FreeAllAllocations(), PaUtil_FreeMemory(), PaUtil_GroupAllocateMemory(), PaUtil_InitializeStreamInterface(), ReadStream(), PaHostApiInfo::structVersion, PaDeviceInfo::structVersion, PaWinMmeHostApiRepresentation::winMmeDeviceIds, and WriteStream().
PaError PaWinWdm_Initialize | ( | PaUtilHostApiRepresentation ** | hostApi, |
PaHostApiIndex | index | ||
) |
References __PaWinWdmHostApiRepresentation::allocations, __PaWinWdmHostApiRepresentation::blockingStreamInterface, BOOL(), __PaWinWdmHostApiRepresentation::callbackStreamInterface, DllKsUser, FunctionKsCreatePin, GetStreamReadAvailable(), GetStreamWriteAvailable(), HANDLE(), PaWinWDMKSAvRtEntryPoints::hInstance, PaUtilHostApiRepresentation::info, __PaWinWdmHostApiRepresentation::inheritedHostApiRep, LPDWORD, PA_LOGE_, PA_LOGL_, paInsufficientMemory, paNoDevice, paNoError, PaUtil_AllocateMemory(), PaUtil_CreateAllocationGroup(), PaUtil_DummyGetCpuLoad(), PaUtil_DummyGetReadAvailable(), PaUtil_DummyGetWriteAvailable(), PaUtil_DummyRead(), PaUtil_DummyWrite(), PaUtil_GetTime(), PaUtil_InitializeStreamInterface(), paWDMKS, ReadStream(), PaHostApiInfo::structVersion, WINAPI, and WriteStream().
PaUtilHostApiInitializer* paHostApiInitializers[] |
paHostApiInitializers is a NULL-terminated array of host API initialization functions. These functions are called by pa_front.c to initialize the host APIs when the client calls Pa_Initialize().
The initialization functions are invoked in order.
The first successfully initialized host API that has a default input or output device is used as the default PortAudio host API. This is based on the logic that there is only one default host API, and it must contain the default input and output devices (if defined).
There is a platform specific file that defines paHostApiInitializers for that platform, pa_win/pa_win_hostapis.c contains the Win32 definitions for example.
Note that on Linux, ALSA is placed before OSS so that the former is preferred over the latter.