#include "pa_hostapi.h"
Functions | |
PaError | PaJack_Initialize (PaUtilHostApiRepresentation **hostApi, PaHostApiIndex index) |
PaError | PaAlsa_Initialize (PaUtilHostApiRepresentation **hostApi, PaHostApiIndex index) |
PaError | PaOSS_Initialize (PaUtilHostApiRepresentation **hostApi, PaHostApiIndex index) |
PaError | PaSGI_Initialize (PaUtilHostApiRepresentation **hostApi, PaHostApiIndex index) |
PaError | PaAsiHpi_Initialize (PaUtilHostApiRepresentation **hostApi, PaHostApiIndex index) |
Variables | |
PaUtilHostApiInitializer * | paHostApiInitializers [] |
int | paDefaultHostApiIndex = 0 |
PaError PaAlsa_Initialize | ( | PaUtilHostApiRepresentation ** | hostApi, | |
PaHostApiIndex | index | |||
) |
References PaAlsaHostApiRepresentation::allocations, PaAlsaHostApiRepresentation::blockingStreamInterface, PaAlsaHostApiRepresentation::callbackStreamInterface, ENSURE_, GetStreamReadAvailable(), GetStreamWriteAvailable(), PaAlsaHostApiRepresentation::hostApiIndex, PA_ENSURE, PA_UNLESS, paALSA, paInsufficientMemory, paNoError, paUnanticipatedHostError, PaUnixThreading_Initialize(), PaUtil_AllocateMemory(), PaUtil_CreateAllocationGroup(), PaUtil_DestroyAllocationGroup(), PaUtil_DummyGetCpuLoad(), PaUtil_DummyGetReadAvailable(), PaUtil_DummyGetWriteAvailable(), PaUtil_DummyRead(), PaUtil_DummyWrite(), PaUtil_FreeAllAllocations(), PaUtil_FreeMemory(), PaUtil_InitializeStreamInterface(), ReadStream(), and WriteStream().
PaError PaAsiHpi_Initialize | ( | PaUtilHostApiRepresentation ** | hostApi, | |
PaHostApiIndex | index | |||
) |
PaError PaJack_Initialize | ( | PaUtilHostApiRepresentation ** | hostApi, | |
PaHostApiIndex | index | |||
) |
References ASSERT_CALL, PaJackHostApiRepresentation::blockingStreamInterface, PaJackHostApiRepresentation::callbackStreamInterface, PaJackHostApiRepresentation::commonHostApiRep, PaJackHostApiRepresentation::cond, PaJackHostApiRepresentation::deviceInfoMemory, ENSURE_PA, PaJackHostApiRepresentation::hostApiIndex, PaUtilHostApiRepresentation::info, PaJackHostApiRepresentation::inputBase, PaJackHostApiRepresentation::jack_buffer_size, PaJackHostApiRepresentation::jack_client, PaJackHostApiRepresentation::jackIsDown, PaJackHostApiRepresentation::mtx, PaJackHostApiRepresentation::outputBase, paInsufficientMemory, paJACK, paNoError, paUnanticipatedHostError, PaUtil_AllocateMemory(), 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 PaOSS_Initialize | ( | PaUtilHostApiRepresentation ** | hostApi, | |
PaHostApiIndex | hostApiIndex | |||
) |
Initialize the OSS API implementation.
This function will initialize host API datastructures and query host devices for information.
Aspect DeviceCapabilities: Enumeration of host API devices is initiated from here
Aspect FreeResources: If an error is encountered under way we have to free each resource allocated in this function, this happens with the usual "error" label.
References PaOSSHostApiRepresentation::allocations, PaOSSHostApiRepresentation::blockingStreamInterface, PaOSSHostApiRepresentation::callbackStreamInterface, GetStreamReadAvailable(), GetStreamWriteAvailable(), PaOSSHostApiRepresentation::hostApiIndex, PaUtilHostApiRepresentation::info, PaOSSHostApiRepresentation::inheritedHostApiRep, PA_ENSURE, PA_UNLESS, paInsufficientMemory, paNoError, paOSS, PaUtil_AllocateMemory(), PaUtil_CreateAllocationGroup(), PaUtil_DestroyAllocationGroup(), PaUtil_DummyGetCpuLoad(), PaUtil_DummyGetReadAvailable(), PaUtil_DummyGetWriteAvailable(), PaUtil_DummyRead(), PaUtil_DummyWrite(), PaUtil_FreeAllAllocations(), PaUtil_FreeMemory(), PaUtil_InitializeStreamInterface(), ReadStream(), PaHostApiInfo::structVersion, and WriteStream().
PaError PaSGI_Initialize | ( | PaUtilHostApiRepresentation ** | hostApi, | |
PaHostApiIndex | index | |||
) |
int paDefaultHostApiIndex = 0 |
The index of the default host API in the paHostApiInitializers array.
There is a platform specific file which defines paDefaultHostApiIndex for that platform, see pa_win/pa_win_hostapis.c for example.
Initial value:
{ 0 }
There is a platform specific file which defines paHostApiInitializers for that platform, pa_win/pa_win_hostapis.c contains the Win32 definitions for example.