paCanNotReadFromAnOutputOnlyStream,
paCanNotWriteToAnInputOnlyStream,
paIncompatibleStreamHostApi,
- paBadBufferPtr
+ paBadBufferPtr,
+ paIsInitialized
} PaErrorCode;
/** Select host APIs and their initialization order.
- The selected host APIs take effect the next time that Pa_Initialize() is
- invoked.
+ This function may only be called prior to calling Pa_Initialize()
+ or after calling Pa_Terminate(). The selected host APIs take effect the
+ next time that Pa_Initialize() is invoked.
@param hostApiTypes An array of host API identifiers belonging to the
PaHostApiTypeId enumeration.
PaHostApiTypeId *oldSelectedHostApiTypes = selectedHostApiTypes_;
PaHostApiTypeId *newSelectedHostApiTypes = NULL;
+ if( PA_IS_INITIALISED_ )
+ {
+ return paIsInitialized;
+ }
+
if( count == 0 )
{
/* revert to default state */