From: philburk Date: Thu, 21 Mar 2002 00:54:06 +0000 (+0000) Subject: Initialize default device IDs. X-Git-Tag: V18~36 X-Git-Url: https://andrewgundersen.net/repos?a=commitdiff_plain;h=f3b86fe9d53f4be642b131222d560fa451064771;p=portaudio Initialize default device IDs. --- diff --git a/pa_mac_core/pa_mac_core.c b/pa_mac_core/pa_mac_core.c index f384382..20eb070 100644 --- a/pa_mac_core/pa_mac_core.c +++ b/pa_mac_core/pa_mac_core.c @@ -202,7 +202,7 @@ static PaDeviceID Pa_QueryDefaultInputDevice( void ) UInt32 count; int i; AudioDeviceID tempDeviceID = kAudioDeviceUnknown; - PaDeviceID defaultDeviceID; + PaDeviceID defaultDeviceID = paNoDevice; // get the default output device for the HAL // it is required to pass the size of the data to be returned @@ -232,7 +232,7 @@ static PaDeviceID Pa_QueryDefaultOutputDevice( void ) UInt32 count; int i; AudioDeviceID tempDeviceID = kAudioDeviceUnknown; - PaDeviceID defaultDeviceID; + PaDeviceID defaultDeviceID = paNoDevice; // get the default output device for the HAL // it is required to pass the size of the data to be returned