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

PUBLIC MYFLT csoundChanOKGetValue ( CSOUND *  ,
int  channel 

Returns the chani opcode MYFLT k-rate value for the indicated channel. The bus is automatically extended if the channel is greater than previously used, clearing new locations to zero. Returns the sample value on success, CSOUND_ERROR if the index is invalid, and CSOUND_MEMORY if there is not enough memory to estend the bus

Definition at line 192 of file bus.c.

References csoundChanOKGetValue().

Referenced by csoundChanOKGetValue().

  if (n < 0)
    return CSOUND_ERROR;
  if ((unsigned int)n >= (unsigned int)csound->nchanok) {
    int   err = chan_realloc(csound,
                       &(csound->chanok), &(csound->nchanok), n + 1);
    if (UNLIKELY(err))
      return err;
  return csound->chanok[n];

Generated by  Doxygen 1.6.0   Back to index