Update of /cvsroot/pure-data/pd/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv9992
Modified Files: Tag: devel_0_38 s_audio.c Log Message: variable sys_sleepgrain
Index: s_audio.c =================================================================== RCS file: /cvsroot/pure-data/pd/src/s_audio.c,v retrieving revision 1.5.4.8 retrieving revision 1.5.4.9 diff -C2 -d -r1.5.4.8 -r1.5.4.9 *** s_audio.c 18 Jan 2005 20:22:48 -0000 1.5.4.8 --- s_audio.c 27 Feb 2005 12:26:22 -0000 1.5.4.9 *************** *** 322,325 **** --- 322,335 ---- enable = 0; sys_schedadvance = advance * 1000; + + /* tb {: cut'n'paste from m_scheduler to adapt the sleepgrain with the latency */ + if (sys_sleepgrain < 1000) + sys_sleepgrain = sys_schedadvance/4; + if (sys_sleepgrain < 100) + sys_sleepgrain = 100; + else if (sys_sleepgrain > 5000) + sys_sleepgrain = 5000; + /* } tb */ + sys_setchsr(inchans, outchans, rate, dacblocksize); sys_log_error(ERR_NOTHING); *************** *** 877,881 **** sys_reopen_audio(); } ! glob_audio_properties(0, 0); } else if (audio_isopen()) --- 887,891 ---- sys_reopen_audio(); } ! glob_audio_properties(0, 0); } else if (audio_isopen())