Update of /cvsroot/pure-data/pd/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv10715
Modified Files: Tag: devel_0_39 s_audio_asio.cpp Log Message: timed lock
Index: s_audio_asio.cpp =================================================================== RCS file: /cvsroot/pure-data/pd/src/Attic/s_audio_asio.cpp,v retrieving revision 1.1.4.26 retrieving revision 1.1.4.26.2.1 diff -C2 -d -r1.1.4.26 -r1.1.4.26.2.1 *** s_audio_asio.cpp 14 May 2005 17:25:09 -0000 1.1.4.26 --- s_audio_asio.cpp 22 May 2005 12:54:47 -0000 1.1.4.26.2.1 *************** *** 776,780 **** /* perform the processing */
! sys_lock();
for (long i = 0; i < sys_outchannels + sys_inchannels; i++) --- 776,789 ---- /* perform the processing */
! int timeout = sys_dacblocksize * (float)asio_ticks_per_callback / (float) sys_dacsr * 1e6; ! ! if (sys_timedlock(timeout) == ETIMEDOUT) ! /* we're late */ ! { ! post("timeout %d", timeout); ! sys_log_error(ERR_SYSLOCK); ! return 0; ! } !
for (long i = 0; i < sys_outchannels + sys_inchannels; i++)