On Mon, 23 Mar 2009, Eric Miller wrote:

> Guillaume Ballet wrote:
> > On Mon, Mar 23, 2009 at 3:32 PM, Eric Miller <[email protected]> wrote:
> >   
        [...]
> > > Now I'm getting a new error. Perhaps the git version is a bit off. Looks
> > > like a problem with bloopsaphone...
> > > 
> > > bloopsaphone.c:331: error: expected ‘;’, ‘,’ or ‘)’ before ‘*’ token
> > > bloopsaphone.c: In function ‘bloops_play’:
> > > bloopsaphone.c:370: error: ‘bloops_port_callback’ undeclared (first use in
> > > this function)
> > > bloopsaphone.c:370: error: (Each undeclared identifier is reported only
> > > once
> > > bloopsaphone.c:370: error: for each function it appears in.)
> > > bloopsaphone.c:370: warning: passing argument 8 of ‘Pa_OpenDefaultStream’
> > > from incompatible pointer type
> > > bloopsaphone.c:370: error: too few arguments to function
> > > ‘Pa_OpenDefaultStream’
> > > bloopsaphone.c: In function ‘bloops_load’:
> > > 
> > > 
> > >     
> > 
> > Doesn't it complain about a missing header file?
> > 
> > If not, I recall having a problem when trying to compile the
> > bloopsaphone on BSD because there where two different version of some
> > library (don't remember which one though, it started with "audio") and
> > it was using the wrong header. Maybe you should take a look at this.
> > 
> > Guillaume
> > 
> >   
> Didn't see any messages about headers. I wonder if the syntax on the
> parameters is incorrect.  Been a really long time since I worked in C so I'm
> not sure.

Would help to use nl or cat -n so we can see which line numbers are
which....

> 
> static int bloops_port_callback(const void *inputBuffer, void *outputBuffer,
>  unsigned long framesPerBuffer, const PaStreamCallbackTimeInfo* timeInfo,

What if you change that (read this as if if were a patch):
- unsigned long framesPerBuffer, const PaStreamCallbackTimeInfo* timeInfo,
+ unsigned long framesPerBuffer, const PaStreamCallbackTimeInfo *timeInfo,

>  PaStreamCallbackFlags statusFlags, void *data)
> {
>  int i;
>  float *out = (float*)outputBuffer;
>  bloops *B = (bloops *)data;
> 
>  bloops_synth(framesPerBuffer, out);
>  // if (B->play == BLOOPS_PLAY)
>  // else
>  //   for(i = 0; i < framesPerBuffer; i++)
>  //     *out++ = 0.0f;
> 
>  return paContinue;
> }

Huh?  inputBuffer seems to be unused, including the commented out bits?
And timeInfo, for that matter.

        Hugh
> 
> 

Reply via email to