wasapi: correction to PaWasapi_UpdateDeviceList() API by making it unavailable by default unless PA_WASAPI_MAX_CONST_DEVICE_COUNT is explicitly defined
This commit is contained in:
parent
eb62287494
commit
d3e65ce690
2 changed files with 5 additions and 5 deletions
|
|
@ -292,10 +292,10 @@ PaWasapiStreamInfo;
|
||||||
|
|
||||||
|
|
||||||
/** Update device list.
|
/** Update device list.
|
||||||
This function will be available if PA_WASAPI_MAX_CONST_DEVICE_COUNT is defined with maximum
|
This function is available if PA_WASAPI_MAX_CONST_DEVICE_COUNT is defined during compile time
|
||||||
constant WASAPI device count (defined by default with value 32).
|
with maximum constant WASAPI device count (recommended value - 32).
|
||||||
If PA_WASAPI_MAX_CONST_DEVICE_COUNT is set to 0 during compile time the implementation will not
|
If PA_WASAPI_MAX_CONST_DEVICE_COUNT is set to 0 (or not defined) during compile time the implementation
|
||||||
define PaWasapi_UpdateDeviceList() and thus updating device list can only be possible by calling
|
will not define PaWasapi_UpdateDeviceList() and thus updating device list can only be possible by calling
|
||||||
Pa_Terminate() and then Pa_Initialize().
|
Pa_Terminate() and then Pa_Initialize().
|
||||||
|
|
||||||
@return Error code indicating success or failure.
|
@return Error code indicating success or failure.
|
||||||
|
|
|
||||||
|
|
@ -50,7 +50,7 @@
|
||||||
// Max device count (if defined) causes max constant device count in the device list that
|
// Max device count (if defined) causes max constant device count in the device list that
|
||||||
// enables PaWasapi_UpdateDeviceList() API and makes it possible to update WASAPI list dynamically
|
// enables PaWasapi_UpdateDeviceList() API and makes it possible to update WASAPI list dynamically
|
||||||
#ifndef PA_WASAPI_MAX_CONST_DEVICE_COUNT
|
#ifndef PA_WASAPI_MAX_CONST_DEVICE_COUNT
|
||||||
#define PA_WASAPI_MAX_CONST_DEVICE_COUNT 32
|
#define PA_WASAPI_MAX_CONST_DEVICE_COUNT 0 // Force basic behavior by defining 0 if not defined by user
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// WinRT
|
// WinRT
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue