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; } }
void RTMP::setBufferTime(size_t size, int streamID) { sendCtrl(*this, CONTROL_BUFFER_TIME, streamID, size); }