Logo Search packages:      
Sourcecode: csound version File versions  Download package

PUBLIC void csoundAddSpinSample ( CSOUND *  csound,
int  frame,
int  channel,
MYFLT  sample 
)

Adds the indicated sample into the audio input woriing buffer (spin); this only ever makes sense before calling csoundPerformKsmps(). The frame and channel must be in bounds relative to ksmps and nchnls.

Definition at line 1532 of file csound.c.

  {
   
    int index = (frame * csound->nchnls) + channel;
    csound->spin[index] += sample;
  }


Generated by  Doxygen 1.6.0   Back to index