From 64c61824dc8bc2a83c03cd609bea77f374b6cfe5 Mon Sep 17 00:00:00 2001 From: Guenter Geiger Date: Mon, 2 Feb 2004 14:31:34 +0000 Subject: merged with version_0_37_1test6 svn path=/trunk/; revision=1310 --- pd/src/s_audio_jack.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'pd/src/s_audio_jack.c') diff --git a/pd/src/s_audio_jack.c b/pd/src/s_audio_jack.c index 6f9937db..e9d8fcb5 100644 --- a/pd/src/s_audio_jack.c +++ b/pd/src/s_audio_jack.c @@ -54,13 +54,13 @@ process (jack_nframes_t nframes, void *arg) } jack_filled -= nframes; } else { /* PD could not keep up ! */ - if (jack_started) sys_log_error(ERR_RESYNC); - for (j = 0; j < sys_outchannels; j++) { - out = jack_port_get_buffer (output_port[j], nframes); - memset(out, 0, sizeof (float) * nframes); - } - memset(jack_outbuf,0,sizeof(jack_outbuf)); - jack_filled = 0; + if (jack_started) sys_log_error(ERR_RESYNC); + for (j = 0; j < outport_count; j++) { + out = jack_port_get_buffer (output_port[j], nframes); + memset(out, 0, sizeof (float) * nframes); + } + memset(jack_outbuf,0,sizeof(jack_outbuf)); + jack_filled = 0; } pthread_cond_broadcast(&jack_sem); return 0; -- cgit v1.2.1