Update of /cvsroot/pure-data/pd/portaudio/pa_unix_oss In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv13401/pd/portaudio/pa_unix_oss
Modified Files: pa_unix_oss.c Log Message: Fixed to compile correctly on macosx 10.3, 10.4 and Windows.
Index: pa_unix_oss.c =================================================================== RCS file: /cvsroot/pure-data/pd/portaudio/pa_unix_oss/pa_unix_oss.c,v retrieving revision 1.11 retrieving revision 1.12 diff -C2 -d -r1.11 -r1.12 *** pa_unix_oss.c 10 Mar 2006 11:04:58 -0000 1.11 --- pa_unix_oss.c 11 Aug 2006 20:09:07 -0000 1.12 *************** *** 531,540 **** paInsufficientMemory ); } ! deviceInfos[numDevices - 1] = deviceInfo;
! if( commonApi->info.defaultInputDevice == paNoDevice && deviceInfo->maxInputChannels > 0 ) ! commonApi->info.defaultInputDevice = i; ! if( commonApi->info.defaultOutputDevice == paNoDevice && deviceInfo->maxOutputChannels > 0 ) ! commonApi->info.defaultOutputDevice = i; }
--- 531,543 ---- paInsufficientMemory ); } ! { ! int devIdx = numDevices - 1; ! deviceInfos[devIdx] = deviceInfo;
! if( commonApi->info.defaultInputDevice == paNoDevice && deviceInfo->maxInputChannels > 0 ) ! commonApi->info.defaultInputDevice = devIdx; ! if( commonApi->info.defaultOutputDevice == paNoDevice && deviceInfo->maxOutputChannels > 0 ) ! commonApi->info.defaultOutputDevice = devIdx; ! } }