Csound Csound-dev Csound-tekno Search About

[CSOUND-DEV:5552] Re: CS5 blocking audio via pa

Date2004-12-18 20:08
FromVictor Lazzarini
Subject[CSOUND-DEV:5552] Re: CS5 blocking audio via pa
Your blocking code (PaBlocking...) works OK on windows. 
I'll have a look on Monday and see if I have any
suggestions.
Btw, thanks for committing my code, I'll send you the
relevant files when I'm back at the office.

Victor

> 
> I have been attempting to use this on the Mac, but it
> stutters something horrid.  Does it work on Windows?  Any
> suggestions as to what could be wrong?
> ==John ffitch
> 

Date2004-12-20 15:23
FromVictor Lazzarini
Subject[CSOUND-DEV:5553] plugin fgen question
Is there any reason why the localfgens array is terminated
with NULL  as in

static NGFENS localfgens[] = {
   { "tanh", (void(*)(void))tanhtable},
   { NULL, NULL}
};

(from ftest.c)

Should it always be implemented like that?

Victor




Victor Lazzarini
Music Technology Laboratory
Music Department
National University of Ireland, Maynooth 

Date2004-12-20 16:53
Fromjpff@codemist.co.uk
Subject[CSOUND-DEV:5554] Re: plugin fgen question
>>>>> "Victor" == Victor Lazzarini  writes:

 Victor> Is there any reason why the localfgens array is terminated
 Victor> with NULL  as in

Yes there is

 Victor> static NGFENS localfgens[] = {
 Victor>    { "tanh", (void(*)(void))tanhtable},
 Victor>    { NULL, NULL}
 Victor> };

 Victor> (from ftest.c)

 Victor> Should it always be implemented like that?

 Victor> Victor


....but I expect you really want to know why!  There are two options
-- a null terminated list or a count.  If one used a count then there
needs to be a way to pass that count back to the loading code, and I
decided that that opens up too many complication, while a NULL
terminated structure is simple and clean.

==John ff

Date2004-12-20 17:07
FromVictor Lazzarini
Subject[CSOUND-DEV:5555] Re: plugin fgen question
Thanks for the quick reply.

Does the actual gen number depend on the order
of the loading? If fgen1.so is loaded before fgen2.so, then say
it will have a lower number?

Victor


At 16:53 20/12/2004, you wrote:
> >>>>> "Victor" == Victor Lazzarini  writes:
>
>  Victor> Is there any reason why the localfgens array is terminated
>  Victor> with NULL  as in
>
>Yes there is
>
>  Victor> static NGFENS localfgens[] = {
>  Victor>    { "tanh", (void(*)(void))tanhtable},
>  Victor>    { NULL, NULL}
>  Victor> };
>
>  Victor> (from ftest.c)
>
>  Victor> Should it always be implemented like that?
>
>  Victor> Victor
>
>
>....but I expect you really want to know why!  There are two options
>-- a null terminated list or a count.  If one used a count then there
>needs to be a way to pass that count back to the loading code, and I
>decided that that opens up too many complication, while a NULL
>terminated structure is simple and clean.
>
>==John ff

Victor Lazzarini
Music Technology Laboratory
Music Department
National University of Ireland, Maynooth 

Date2004-12-20 18:20
Fromjpff@codemist.co.uk
Subject[CSOUND-DEV:5556] Re: plugin fgen question
Yes; numbers are allocated in a simple increasing fashion.  Could not
think of an alternative!
==John ffitch