Update of /cvsroot/pure-data/pd/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv13590
Modified Files: Tag: devel_0_37 d_soundfile.c Log Message: minor changes
Index: d_soundfile.c =================================================================== RCS file: /cvsroot/pure-data/pd/src/d_soundfile.c,v retrieving revision 1.1.1.2.2.15 retrieving revision 1.1.1.2.2.16 diff -C2 -d -r1.1.1.2.2.15 -r1.1.1.2.2.16 *** d_soundfile.c 26 Jun 2004 23:11:19 -0000 1.1.1.2.2.15 --- d_soundfile.c 29 Jun 2004 20:48:18 -0000 1.1.1.2.2.16 *************** *** 962,969 **** pthread_mutex_unlock(&(last_entry->mutex));
- #ifdef SFDEBUG - post("\tentry has been prepared"); - #endif - /* inform the queue and the last element */ pthread_mutex_lock(&(soundfiler_queue->mutex)); --- 962,965 ---- *************** *** 1009,1024 **** {
- /* - #ifdef __linux__ - if (sched_setscheduler(0,SCHED_FIFO,&sf_param) != -1) - fprintf(stderr, "priority %d scheduling for soundfiler.\n", - sf_param.sched_priority); - #else - if (sched_setscheduler(0,SCHED_FIFO) != -1) - fprintf(stderr, "priority %d scheduling for soundfiler.\n", - sf_param.sched_priority); - #endif - */ - while (1) { --- 1005,1008 ---- *************** *** 1396,1399 **** --- 1380,1388 ---- goto done; } + /* zero samples */ + /* todo: this is not necessary at this point in the process, but + when we do that later, i had some problems */ + if(i >= channels) + memset(nvecs[i],0,vecsize[i] * sizeof(t_float)); } else *************** *** 1417,1420 **** --- 1406,1412 ---- goto done; } + /* zero samples */ + /* todo: this is not necessary at this point in the process, but + when we do that later, i had some problems */ if(i >= channels) memset(nvecs[i],0,vecsize[i] * sizeof(t_float)); *************** *** 1856,1859 **** --- 1848,1854 ---- x->x_canvas = canvas_getcurrent(); outlet_new(&x->x_obj, &s_float); + #ifdef THREADED_SF + post("warning: threaded soundfiler is not synchronous"); + #endif /* THREADED_SF */ return (x); }