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) |
PaError | PaJack_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_AllocateZeroInitializedMemory(), PaUtil_CreateAllocationGroup(), PaUtil_DestroyAllocationGroup(), PaUtil_DummyGetCpuLoad(), PaUtil_DummyGetReadAvailable(), PaUtil_DummyGetWriteAvailable(), PaUtil_DummyRead(), PaUtil_DummyWrite(), PaUtil_FreeAllAllocations(), PaUtil_FreeMemory(), PaUtil_GroupAllocateZeroInitializedMemory(), PaUtil_InitializeStreamInterface(), PaWinUtil_CoInitialize(), PaWinUtil_CoUninitialize(), PaHostApiInfo::structVersion, PaDeviceInfo::structVersion, and PaAsioHostApiRepresentation::systemSpecific.
PaError PaJack_Initialize | ( | PaUtilHostApiRepresentation ** | hostApi, |
PaHostApiIndex | index | ||
) |
References ASSERT_CALL, PaJackHostApiRepresentation::blockingStreamInterface, PaJackHostApiRepresentation::callbackStreamInterface, PaJackHostApiRepresentation::commonHostApiRep, PaJackHostApiRepresentation::cond, PaJackHostApiRepresentation::condClockId, PaJackHostApiRepresentation::deviceInfoMemory, ENSURE_PA, PaJackHostApiRepresentation::hostApiIndex, PaUtilHostApiRepresentation::info, PaJackHostApiRepresentation::inputBase, PaJackHostApiRepresentation::jack_buffer_size, PaJackHostApiRepresentation::jack_client, PaJackHostApiRepresentation::jackIsDown, PaJackHostApiRepresentation::mtx, PaJackHostApiRepresentation::outputBase, PA_DEBUG, paInsufficientMemory, paJACK, paNoError, PaPthreadUtil_NegotiateCondAttrClock(), paUnanticipatedHostError, PaUtil_AllocateZeroInitializedMemory(), PaUtil_CreateAllocationGroup(), PaUtil_DestroyAllocationGroup(), PaUtil_DummyGetCpuLoad(), PaUtil_DummyGetReadAvailable(), PaUtil_DummyGetWriteAvailable(), PaUtil_DummyRead(), PaUtil_DummyWrite(), PaUtil_FreeAllAllocations(), PaUtil_FreeMemory(), PaUtil_InitializeStreamInterface(), PaJackHostApiRepresentation::processQueue, PaHostApiInfo::structVersion, PaJackHostApiRepresentation::toAdd, PaJackHostApiRepresentation::toRemove, UNLESS, and PaJackHostApiRepresentation::xrun.
PaError PaSkeleton_Initialize | ( | PaUtilHostApiRepresentation ** | hostApi, |
PaHostApiIndex | index | ||
) |
References PaSkeletonHostApiRepresentation::allocations, PaSkeletonHostApiRepresentation::blockingStreamInterface, PaSkeletonHostApiRepresentation::callbackStreamInterface, PaDeviceInfo::defaultHighInputLatency, PaDeviceInfo::defaultHighOutputLatency, PaDeviceInfo::defaultLowInputLatency, PaDeviceInfo::defaultLowOutputLatency, PaDeviceInfo::defaultSampleRate, GetStreamCpuLoad(), GetStreamReadAvailable(), GetStreamTime(), GetStreamWriteAvailable(), PaDeviceInfo::hostApi, PaUtilHostApiRepresentation::info, PaSkeletonHostApiRepresentation::inheritedHostApiRep, PaUtilHostApiRepresentation::IsFormatSupported, IsStreamActive(), IsStreamStopped(), PaDeviceInfo::maxInputChannels, PaDeviceInfo::maxOutputChannels, PaDeviceInfo::name, PaUtilHostApiRepresentation::OpenStream, paInDevelopment, paInsufficientMemory, paNoDevice, paNoError, PaUtil_AllocateZeroInitializedMemory(), PaUtil_CreateAllocationGroup(), PaUtil_DestroyAllocationGroup(), PaUtil_DummyGetCpuLoad(), PaUtil_DummyGetReadAvailable(), PaUtil_DummyGetWriteAvailable(), PaUtil_DummyRead(), PaUtil_DummyWrite(), PaUtil_FreeAllAllocations(), PaUtil_FreeMemory(), PaUtil_GroupAllocateZeroInitializedMemory(), 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, GetStreamCpuLoad(), GetStreamReadAvailable(), GetStreamTime(), GetStreamWriteAvailable(), PaUtilHostApiRepresentation::info, PaWasapiHostApiRepresentation::inheritedHostApiRep, IsFormatSupported(), IsStreamActive(), IsStreamStopped(), OpenStream(), Pa_GetErrorText(), paInsufficientMemory, paNoDevice, paNoError, paOsVersionWindowsVistaServer2008, PaUtil_AllocateZeroInitializedMemory(), PaUtil_CreateAllocationGroup(), PaUtil_DummyGetCpuLoad(), PaUtil_DummyGetReadAvailable(), PaUtil_DummyGetWriteAvailable(), PaUtil_DummyRead(), PaUtil_DummyWrite(), PaUtil_InitializeStreamInterface(), paWASAPI, PaWinUtil_CoInitialize(), PaWinUtil_GetOsVersion(), PRINT, ReadStream(), PaHostApiInfo::structVersion, Terminate(), 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_AllocateZeroInitializedMemory(), PaUtil_CreateAllocationGroup(), PaUtil_DummyGetCpuLoad(), PaUtil_DummyGetReadAvailable(), PaUtil_DummyGetWriteAvailable(), PaUtil_DummyRead(), PaUtil_DummyWrite(), PaUtil_GroupAllocateZeroInitializedMemory(), 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, GetStreamCpuLoad(), GetStreamReadAvailable(), GetStreamTime(), GetStreamWriteAvailable(), PaDeviceInfo::hostApi, PaUtilHostApiRepresentation::info, PaWinMmeDeviceInfo::inheritedDeviceInfo, PaWinMmeHostApiRepresentation::inheritedHostApiRep, PaWinMmeHostApiRepresentation::inputDeviceCount, IsFormatSupported(), IsStreamActive(), IsStreamStopped(), PaDeviceInfo::maxInputChannels, PaDeviceInfo::maxOutputChannels, OpenStream(), PaWinMmeHostApiRepresentation::outputDeviceCount, paInsufficientMemory, paMME, paNoDevice, paNoError, PaUtil_AllocateZeroInitializedMemory(), PaUtil_CreateAllocationGroup(), PaUtil_DestroyAllocationGroup(), PaUtil_DummyGetCpuLoad(), PaUtil_DummyGetReadAvailable(), PaUtil_DummyGetWriteAvailable(), PaUtil_DummyRead(), PaUtil_DummyWrite(), PaUtil_FreeAllAllocations(), PaUtil_FreeMemory(), PaUtil_GroupAllocateZeroInitializedMemory(), PaUtil_InitializeStreamInterface(), ReadStream(), PaHostApiInfo::structVersion, PaDeviceInfo::structVersion, Terminate(), PaWinMmeHostApiRepresentation::winMmeDeviceIds, and WriteStream().
PaError PaWinWdm_Initialize | ( | PaUtilHostApiRepresentation ** | hostApi, |
PaHostApiIndex | index | ||
) |
References __PaWinWdmHostApiRepresentation::allocations, __PaWinWdmHostApiRepresentation::blockingStreamInterface, BOOL(), __PaWinWdmHostApiRepresentation::callbackStreamInterface, DllKsUser, FunctionKsCreatePin, GetStreamCpuLoad(), GetStreamReadAvailable(), GetStreamTime(), GetStreamWriteAvailable(), HANDLE(), PaWinWDMKSAvRtEntryPoints::hInstance, PaUtilHostApiRepresentation::info, __PaWinWdmHostApiRepresentation::inheritedHostApiRep, IsFormatSupported(), IsStreamActive(), IsStreamStopped(), LPDWORD, OpenStream(), PA_LOGE_, PA_LOGL_, paInsufficientMemory, paNoDevice, paNoError, PaUtil_AllocateZeroInitializedMemory(), PaUtil_CreateAllocationGroup(), PaUtil_DummyGetCpuLoad(), PaUtil_DummyGetReadAvailable(), PaUtil_DummyGetWriteAvailable(), PaUtil_DummyRead(), PaUtil_DummyWrite(), PaUtil_GetTime(), PaUtil_InitializeStreamInterface(), paWDMKS, ReadStream(), PaHostApiInfo::structVersion, Terminate(), 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.