hotplug: update docs for Pa_Initialize()
This commit is contained in:
parent
2048a0a62f
commit
ca24be18da
1 changed files with 7 additions and 5 deletions
|
|
@ -158,11 +158,13 @@ const char *Pa_GetErrorText( PaError errorCode );
|
||||||
If Pa_Initialize() returns an error code, Pa_Terminate() should
|
If Pa_Initialize() returns an error code, Pa_Terminate() should
|
||||||
NOT be called.
|
NOT be called.
|
||||||
|
|
||||||
@note The device list returned by Pa_GetDeviceCount() et al. is frozen
|
@note The device list returned by Pa_GetDeviceCount() et al, default devices,
|
||||||
when Pa_Initialize() is called. The device list is not automatically updated
|
and the default host API are all frozen when Pa_Initialize() is called. The
|
||||||
when hardware devices are connected or disconnected. To refresh the list of devices,
|
device list is not automatically updated when hardware devices are connected or
|
||||||
either call Pa_RefreshDeviceList() or uninitialize PortAudio using Pa_Terminate(),
|
disconnected. To refresh the list of devices, and default devices, either call
|
||||||
and then reinitialize it by calling Pa_Initialize().
|
Pa_RefreshDeviceList() or uninitialize PortAudio using Pa_Terminate(),
|
||||||
|
and then reinitialize it by calling Pa_Initialize(). To register a callback
|
||||||
|
when native devices or defaults change, call Pa_SetDevicesChangedCallback().
|
||||||
|
|
||||||
@return paNoError if successful, otherwise an error code indicating the cause
|
@return paNoError if successful, otherwise an error code indicating the cause
|
||||||
of failure.
|
of failure.
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue