]> Repos - portaudio/commitdiff
Initialize default device IDs.
authorphilburk <philburk@0f58301d-fd10-0410-b4af-bbb618454e57>
Thu, 21 Mar 2002 00:54:06 +0000 (00:54 +0000)
committerphilburk <philburk@0f58301d-fd10-0410-b4af-bbb618454e57>
Thu, 21 Mar 2002 00:54:06 +0000 (00:54 +0000)
pa_mac_core/pa_mac_core.c

index f3843820bd810b29c2ed069ed11f3fb2b570a490..20eb07083f61ab520286c478c6e23c82df2f8303 100644 (file)
@@ -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