[PD-cvs] pd/src d_soundfile.c,1.1.1.2.2.9,1.1.1.2.2.10
Tim Blechmann
timblech at users.sourceforge.net
Thu Jun 17 09:57:02 CEST 2004
Update of /cvsroot/pure-data/pd/src
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv30839
Modified Files:
Tag: devel_0_37
d_soundfile.c
Log Message:
changed thread initialisation to work on win32 ... what about osx?
also minor cleanup
Index: d_soundfile.c
===================================================================
RCS file: /cvsroot/pure-data/pd/src/d_soundfile.c,v
retrieving revision 1.1.1.2.2.9
retrieving revision 1.1.1.2.2.10
diff -C2 -d -r1.1.1.2.2.9 -r1.1.1.2.2.10
*** d_soundfile.c 3 Jun 2004 09:25:05 -0000 1.1.1.2.2.9
--- d_soundfile.c 17 Jun 2004 07:56:57 -0000 1.1.1.2.2.10
***************
*** 893,902 ****
static pthread_attr_t sf_attr;
- typedef enum
- {
- S_SOUNDFILER,
- S_ARRAY
- } t_sfobjecttype;
-
typedef struct _sfprocess
{
--- 893,896 ----
***************
*** 1000,1007 ****
sf_param.sched_priority=sched_get_priority_min(SCHED_FIFO)+1;
if (sched_setscheduler(0,SCHED_FIFO,&sf_param) != -1)
fprintf(stderr, "priority %d scheduling for soundfiler.\n",
sf_param.sched_priority);
!
while (1)
--- 994,1009 ----
sf_param.sched_priority=sched_get_priority_min(SCHED_FIFO)+1;
+ #ifdef __linux__
+ /* this doesn't work on windows .. i'll have to check it for osx */
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 /* __linux__ */
!
!
while (1)
More information about the Pd-cvs
mailing list