Example #1
0
StreamingSound::StreamingSound(StreamingSoundData& sd,
            media::MediaHandler& mh, sound_handler::StreamBlockId block)
        :
        LiveSound(mh, sd.soundinfo, getInPoint(sd, block)),
        _currentBlock(block),
        _positionInBlock(0),
        _soundDef(sd)
{
}
Example #2
0
// Responsible for drawing the actual FBO for the frame, as opposed to drawing on the Timeline
// This function SHOULD be called by the main app
void Timeline::drawCurFrame() {
    frames[curFrame].setAlpha(255);
    beginBlend();
    frames[curFrame].draw();
    endBlend();
    if(isPlaying && ofGetFrameNum()%frameRate == 0) {
        curFrame += 1;
        if(curFrame > getOutPoint()) {
            curFrame = getInPoint();
        }
    }
    
}