PortAudio  2.0
Functions | Variables

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

PaUtilHostApiInitializerpaHostApiInitializers []
 

Detailed Description

Win32 host API initialization function table.

Function Documentation

PaError PaAsio_Initialize ( PaUtilHostApiRepresentation **  hostApi,
PaHostApiIndex  index 
)
PaError PaSkeleton_Initialize ( PaUtilHostApiRepresentation **  hostApi,
PaHostApiIndex  index 
)
PaError PaWasapi_Initialize ( PaUtilHostApiRepresentation **  hostApi,
PaHostApiIndex  index 
)
PaError PaWinDs_Initialize ( PaUtilHostApiRepresentation **  hostApi,
PaHostApiIndex  index 
)
PaError PaWinMme_Initialize ( PaUtilHostApiRepresentation **  hostApi,
PaHostApiIndex  index 
)
PaError PaWinWdm_Initialize ( PaUtilHostApiRepresentation **  hostApi,
PaHostApiIndex  index 
)

Variable Documentation

PaUtilHostApiInitializer* paHostApiInitializers[]
Initial value:
=
{
0
}

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.