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

int PUBLIC csoundGetFirstMessageAttr ( CSOUND *  csound  ) 

Returns the attribute parameter (see msg_attr.h) of the first message in the buffer.

Definition at line 3110 of file csound.c.

References csoundGetFirstMessageAttr().

Referenced by csoundGetFirstMessageAttr().

  {
      csMsgBuffer *pp = (csMsgBuffer*) csoundGetHostData(csound);
      int         attr = 0;

      if (pp && pp->msgCnt) {
        csoundLockMutex(pp->mutex_);
        if (pp->firstMsg)
          attr = pp->firstMsg->attr;
        csoundUnlockMutex(pp->mutex_);
      }
      return attr;
  }


Generated by  Doxygen 1.6.0   Back to index