Update of /cvsroot/pure-data/pd/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv7756
Modified Files: Tag: devel_0_39 m_glob.c m_sched.c s_audio_portaudio.c Log Message: notification about sys_lock timeout to pd receiver
Index: m_sched.c =================================================================== RCS file: /cvsroot/pure-data/pd/src/m_sched.c,v retrieving revision 1.5.4.35.2.14 retrieving revision 1.5.4.35.2.15 diff -C2 -d -r1.5.4.35.2.14 -r1.5.4.35.2.15 *** m_sched.c 25 Jun 2006 17:45:20 -0000 1.5.4.35.2.14 --- m_sched.c 27 Jun 2006 15:47:46 -0000 1.5.4.35.2.15 *************** *** 875,876 **** --- 875,893 ---- sys_callback(sys_xrun_notification_callback, 0, 0); } + + + static t_int sys_lock_timeout_notification_callback(t_int * dumy) + { + t_symbol * pd = gensym("pd"); + t_symbol * timeout = gensym("sys_lock_timeout"); + + typedmess(pd->s_thing, timeout, 0, 0); + + return 0; + } + + + void sys_lock_timeout_notification(void) + { + sys_callback(sys_xrun_notification_callback, 0, 0); + }
Index: s_audio_portaudio.c =================================================================== RCS file: /cvsroot/pure-data/pd/src/Attic/s_audio_portaudio.c,v retrieving revision 1.1.2.11 retrieving revision 1.1.2.12 diff -C2 -d -r1.1.2.11 -r1.1.2.12 *** s_audio_portaudio.c 25 Jun 2006 17:37:42 -0000 1.1.2.11 --- s_audio_portaudio.c 27 Jun 2006 15:47:46 -0000 1.1.2.12 *************** *** 310,313 **** --- 310,315 ---- void run_all_idle_callbacks(void);
+ void sys_lock_timeout_notification(void); + int process (const void *input, void *output, unsigned long frameCount, const PaStreamCallbackTimeInfo* timeInfo, *************** *** 321,331 ****
if (statusFlags) ! post("statusFlags %p", statusFlags);
if (sys_timedlock(timeout) == ETIMEDOUT) /* we're late */ { ! post("timeout %d", timeout); ! sys_log_error(ERR_SYSLOCK); return 0; } --- 323,332 ----
if (statusFlags) ! sys_xrun_notification();
if (sys_timedlock(timeout) == ETIMEDOUT) /* we're late */ { ! sys_lock_timeout_notification(); return 0; }
Index: m_glob.c =================================================================== RCS file: /cvsroot/pure-data/pd/src/m_glob.c,v retrieving revision 1.4.4.2.2.9 retrieving revision 1.4.4.2.2.10 diff -C2 -d -r1.4.4.2.2.9 -r1.4.4.2.2.10 *** m_glob.c 25 Jun 2006 17:37:42 -0000 1.4.4.2.2.9 --- m_glob.c 27 Jun 2006 15:47:46 -0000 1.4.4.2.2.10 *************** *** 87,90 **** --- 87,92 ---- if (s == gensym("audio_started")) return; + if (s == gensym("sys_lock_timeout")) + return;
startpost("%s: unknown message %s ", class_getname(pd_class(x)),