예제 #1
0
 void DumbTrajectory::updateHook(){
     switch(simState){
         case CTRL_HALT:
         case CTRL_FAIL:
             break;
         case CTRL_STEP:
             //Fall through here is intentional
         case CTRL_RUN:
             if( getStateVector(true) ){
                 sendCtrl();
             }
             if(simState == CTRL_STEP){
                 simState = CTRL_HALT;
             }
             break;
         default:
             break;
     }
 }
예제 #2
0
파일: RTMP.cpp 프로젝트: aopui/gnash
void
RTMP::setBufferTime(size_t size, int streamID)
{
    sendCtrl(*this, CONTROL_BUFFER_TIME, streamID, size);
}