Update of /cvsroot/pure-data/pd/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv28565
Modified Files: Tag: devel_0_38 s_audio_asio.cpp Log Message: - improved driver creation - handling of kAsioBufferSizeChange callback
Index: s_audio_asio.cpp =================================================================== RCS file: /cvsroot/pure-data/pd/src/Attic/s_audio_asio.cpp,v retrieving revision 1.1.4.24 retrieving revision 1.1.4.25 diff -C2 -d -r1.1.4.24 -r1.1.4.25 *** s_audio_asio.cpp 11 May 2005 12:35:27 -0000 1.1.4.24 --- s_audio_asio.cpp 14 May 2005 16:31:55 -0000 1.1.4.25 *************** *** 215,222 **** /* check, if we use the first asio device */ prepare_asio_drivernames(); - - /* load the driver */ - if (!asioDrivers) - asioDrivers = new AsioDrivers(); asioDrivers->getDriverNames(asio_drivernames,MAXNDEV); --- 215,218 ---- *************** *** 753,757 **** /* todo */ post("ASIO: Buffer size changed"); ! return 0L; /* should be 1 */ case kAsioResyncRequest: post("ASIO: Resync request"); --- 749,754 ---- /* todo */ post("ASIO: Buffer size changed"); ! sys_restart_audio(); ! return 1L; case kAsioResyncRequest: post("ASIO: Resync request"); *************** *** 1231,1235 **** static void prepare_asio_drivernames(void) { ! if (asio_drivernames == NULL) { asio_drivernames = (char**)getbytes(MAXNDEV * sizeof(char*)); --- 1228,1232 ---- static void prepare_asio_drivernames(void) { ! if (!asio_drivernames) { asio_drivernames = (char**)getbytes(MAXNDEV * sizeof(char*)); *************** *** 1239,1242 **** --- 1236,1244 ---- } } + + /* load the driver */ + if (!asioDrivers) + asioDrivers = new AsioDrivers(); + return; }