From: Ross Bencina Date: Sun, 18 Sep 2016 14:52:56 +0000 (+1000) Subject: add comment about dsound default devices X-Git-Url: https://andrewgundersen.net/repos?a=commitdiff_plain;h=2048a0a62f987ce760f847c85bafbe330b0e162d;p=portaudio add comment about dsound default devices --- diff --git a/src/hostapi/dsound/pa_win_ds.c b/src/hostapi/dsound/pa_win_ds.c index 44ab4ae..7201607 100644 --- a/src/hostapi/dsound/pa_win_ds.c +++ b/src/hostapi/dsound/pa_win_ds.c @@ -1564,7 +1564,7 @@ static PaError ScanDeviceInfos( struct PaUtilHostApiRepresentation *hostApi, PaH else winDsDeviceInfo->inheritedDeviceInfo.connectionId = PaUtil_MakeDeviceConnectionId(); - if( deviceNamesAndGUIDs.inputNamesAndGUIDs.items[i].lpGUID == NULL ) + if( deviceNamesAndGUIDs.inputNamesAndGUIDs.items[i].lpGUID == NULL ) /* "Primary Sound Capture Driver" */ outArgument->defaultInputDevice = *newDeviceCount; (*newDeviceCount)++; } @@ -1589,7 +1589,7 @@ static PaError ScanDeviceInfos( struct PaUtilHostApiRepresentation *hostApi, PaH else winDsDeviceInfo->inheritedDeviceInfo.connectionId = PaUtil_MakeDeviceConnectionId(); - if( deviceNamesAndGUIDs.outputNamesAndGUIDs.items[i].lpGUID == NULL ) + if( deviceNamesAndGUIDs.outputNamesAndGUIDs.items[i].lpGUID == NULL ) /* "Primary Sound Driver" */ outArgument->defaultOutputDevice = *newDeviceCount; (*newDeviceCount)++; }