Csound Csound-dev Csound-tekno Search About

[CSOUND-DEV:5176] Re: Preliminary implementation of low latencyaudio for Windows

Date2004-08-10 14:40
From"gogins@pipeline.com"
Subject[CSOUND-DEV:5176] Re: Preliminary implementation of low latencyaudio for Windows
I wouldn't have thought there would be any such side effects, but I will
fix it tonight.

Original Message:
-----------------
From: John ffitch jpff@cs.bath.ac.uk
Date: Tue, 10 Aug 2004 14:35:35 +0100 (BST)
To: csound-dev@eartha.mills.edu
Subject: [CSOUND-DEV:5175] Re: Preliminary implementation of low
latencyaudio for Windows


...but it does mean that Linux Csound5 idoes not build
==John ff


--------------------------------------------------------------------
mail2web - Check your email from the web at
http://mail2web.com/ .

Date2004-08-10 15:57
Fromstevenyi
Subject[CSOUND-DEV:5180] Re: Preliminary implementation of low latencyaudio for Windows
Hi All,

I took a quick look and found that some headers that are #included for
windows need to be included regardless.  So now the top of my
Top/threads.c looks like:

#include "csound.h"
#include "cs.h"
#include "portaudio.h"

#if defined(WIN32)
#include 


However, there's definitions in csound.h that are conflicting with
threads.c. (listed below)

There's also a minor issue with csoundJoinThread (line 65 for me) that
it needs parenthesis for the 

if(pthreadreturnValue) {


I'm leaving for work now so won't be committing anything as there's the
issues below, but thought this might help a bit.

Thanks,
steven



gcc -DCSOUND_WITH_API -g -O2 -DLINUX -Wall -DPIPES -DHAVE_FCNTL_H
-DHAVE_UNISTD_H -DHAVE_MALLOC_H -DHAVE_SGTTY_H -DHAVE_SYS_IOCTL_H
-DHAVE_SYS_TIME_H -DHAVE_SYS_TYPES_H -DHAVE_TERMIOS_H -DHAVE_STRING_H
-DHAVE_STRINGS_H -DHAVE_DIRENT_H -DRTAUDIO -DWINDOWS -DUSE_FLTK -DBETA
-I. -IH -I/usr/local/include -I/usr/include -c -o Top/threads.o
Top/threads.c
Top/threads.c: In function `csoundJoinThread':
Top/threads.c:64: warning: passing arg 1 of `pthread_join' makes integer
from pointer without a cast
Top/threads.c:64: warning: passing arg 2 of `pthread_join' from
incompatible pointer type
Top/threads.c:66: error: `returnValue' undeclared (first use in this
function)
Top/threads.c:66: error: (Each undeclared identifier is reported only
once
Top/threads.c:66: error: for each function it appears in.)
Top/threads.c: In function `csoundCreateThreadLock':
Top/threads.c:73: error: number of arguments doesn't match prototype
H/csound.h:749: error: prototype declaration
Top/threads.c: At top level:
Top/threads.c:83: error: conflicting types for `csoundWaitThreadLock'
H/csound.h:757: error: previous declaration of `csoundWaitThreadLock'
Top/threads.c: In function `csoundWaitThreadLock':
Top/threads.c:85: warning: unused variable `returnValue'
Top/threads.c: At top level:
Top/threads.c:89: error: conflicting types for `csoundNotifyThreadLock'
H/csound.h:762: error: previous declaration of `csoundNotifyThreadLock'
Top/threads.c: In function `csoundNotifyThreadLock':
Top/threads.c:91: warning: unused variable `returnValue'
Top/threads.c: At top level:
Top/threads.c:95: error: conflicting types for `csoundDestroyThreadLock'
H/csound.h:767: error: previous declaration of `csoundDestroyThreadLock'
Top/threads.c: In function `csoundDestroyThreadLock':


On Tue, 2004-08-10 at 06:40, gogins@pipeline.com wrote:
> I wouldn't have thought there would be any such side effects, but I will
> fix it tonight.
> 
> Original Message:
> -----------------
> From: John ffitch jpff@cs.bath.ac.uk
> Date: Tue, 10 Aug 2004 14:35:35 +0100 (BST)
> To: csound-dev@eartha.mills.edu
> Subject: [CSOUND-DEV:5175] Re: Preliminary implementation of low
> latencyaudio for Windows
> 
> 
> ...but it does mean that Linux Csound5 idoes not build
> ==John ff
> 
> 
> --------------------------------------------------------------------
> mail2web - Check your email from the web at
> http://mail2web.com/ .
> 
> 
>