Csound Csound-dev Csound-tekno Search About

[CSOUND-DEV:5208] Re: [Portaudio] Re: Re: Preliminary implementationof low latency audio for Windows

Date2004-08-12 01:56
From"Michael Gogins"
Subject[CSOUND-DEV:5208] Re: [Portaudio] Re: Re: Preliminary implementationof low latency audio for Windows
The errors you quote suggest that the Csound API thread lock functions are
not declared in scope.

I rearranged the code to make it a little more conversative as to coding
practice (declaring more variables at entry to functions, etc.) and
committed it. I also got everything fresh from CVS on Linux after that and
rebuilt all with no problems.

If you still have errors, here's what I can come up with:

Have you updated csound.h and csound.c?

Have you installed the pthread lib and headers? Are they seen by scons?


----- Original Message ----- 
From: 
To: "Csound Developers Discussion List" 
Sent: Wednesday, August 11, 2004 12:28 PM
Subject: [CSOUND-DEV:5201] Re: [Portaudio] Re: Re: Preliminary
implementationof low latency audio for Windows


> I repeat, it does not compile on Linux RedHat 7.3
> I have just done an update (finished 17:25 BST) and a call to scons
> results in
> ....compiling InOut/pa_blocking.c
> Line 15: parse error before 'unsigned'
> Line 21: `maxLag' undeclared
> Line 22: paError undeclared
> Line 82: parse error before paError
> Line 88: maxLag undeclared
>
> and that is it (retyped as on the other machine)
>
> ==John ffitch
>

Date2004-08-12 07:59
Fromjpff@codemist.co.uk
Subject[CSOUND-DEV:5209] Re: [Portaudio] Re: Re: Preliminary implementationof low latency audio for Windows
this morning things are very different.  Four files have changed, and
now it compiles.
P Engine/musmon.c
P H/pa_blocking.h
P InOut/pa_blocking.c
M Opcodes/osc-sock.c
P Top/main.c

But:

1: Why does it need to compile threads.c when there is a perfectly
working blocking output?

2: Of course pthreads is installed -- this is Linux and PortAudio
would not work without it.

3: It is not good practice to have so many warnings when compiling.

4: I now get an error at the end of rendering
B 40.000 .. 43.000 T 43.000 TT 43.000 M:  19864.2
B 43.000 .. 53.000 T 53.000 TT 53.000 M:  21009.1
Score finished in csoundPerformKsmps()
inactive allocs returned to freespace
end of score.              overall amps:  21009.1
           overall samples out of range:        0
0 errors in performance
PortAudio error -9988: Invalid stream pointer
2283 4096-byte soundblks of shorts written to dac:plughw:0 WAV
inactive allocs returned to freespace
end of score.              overall amps:  21009.1
           overall samples out of range:        0
0 errors in performance