示例#1
0
void Animation::setNumberOfFrames(int num)
{
  qDebug("Animation::setNumberOfFrames(%d)",num);
  totalFrames=num;
  setDirty(true);
  emit numberOfFrames(num);
}
示例#2
0
byte Beak::chirp(const char *chirpStr) {
    int16_t nFrames = numberOfFrames();
    size_t frameStoreSize = sizeof(SynthFrame[nFrames]);
    
    if(enoughSpaceFor(frameStoreSize)) {
        SynthFrame *frames = (SynthFrame *) alloca(frameStoreSize);
        return chirp(chirpStr, nFrames, frames);
    }
    else {
        return TOO_LITTLE_RAM_WARNING;
    }
}
示例#3
0
byte Beak::chirp(const char *chirpStr, char *enoughSpaceForFrames) {
   return chirp(chirpStr, numberOfFrames(), (SynthFrame *) enoughSpaceForFrames);
}
示例#4
0
byte Beak::chirp(const char *chirpStr) {
    int16_t nFrames = numberOfFrames();
    SynthFrame *frames = (SynthFrame *) alloca(sizeof(SynthFrame[nFrames]));

    return chirp(chirpStr, nFrames, frames);
}