hotplug: added connectionId parameter to PaDeviceInfo and bumped struct version number. added PaUtil_MakeDeviceConnectionId() function and used it to initialize connectionId in all host APIs. updated patest_refresh_device_list to display connection id. NOTE: persistent connection ids have not been implemented in dsound and wdmks, so refreshing the device list will change connection ids.
This commit is contained in:
parent
abfcd708b4
commit
d41ba780b2
14 changed files with 56 additions and 17 deletions
|
|
@ -573,7 +573,7 @@ static PaError BuildDeviceList( PaJackHostApiRepresentation *jackApi )
|
|||
strlen(client_names[client_index]) + 1 ), paInsufficientMemory );
|
||||
strcpy( (char *)curDevInfo->name, client_names[client_index] );
|
||||
|
||||
curDevInfo->structVersion = 2;
|
||||
curDevInfo->structVersion = 3;
|
||||
curDevInfo->hostApi = jackApi->hostApiIndex;
|
||||
|
||||
/* JACK is very inflexible: there is one sample rate the whole
|
||||
|
|
@ -634,6 +634,8 @@ static PaError BuildDeviceList( PaJackHostApiRepresentation *jackApi )
|
|||
commonApi->info.defaultInputDevice = client_index;
|
||||
if( commonApi->info.defaultOutputDevice == paNoDevice && curDevInfo->maxOutputChannels > 0 )
|
||||
commonApi->info.defaultOutputDevice = client_index;
|
||||
|
||||
deviceInfo->connectionId = PaUtil_MakeDeviceConnectionId();
|
||||
}
|
||||
|
||||
error:
|
||||
|
|
|
|||
Loading…
Reference in a new issue