示例#1
0
void RecordMove(int iirec)
{
  /* Note we don't reclaim buffer when over-recording */

  rgirecMin[iirec] = iRecNext;
  Recorder();
  rgirecMax[iirec] = iRecNext;
}
示例#2
0
文件: Hitter.cpp 项目: hironroy/amur
void Hitter::begin(int _hitDuration, byte _inputPin,  byte _outputPin){
    hitDuration = _hitDuration;
    isDoingHit = false;
    newHit = false;
    outputPin = _outputPin;
    inputPin = _inputPin;
    msSinceLastHit = 0;
    
    pinMode(outputPin, OUTPUT);
    pinMode(inputPin, INPUT);
    
    recorder = Recorder();
    recorder.begin();
}
void MainWindow::stopRecord() {
    ui->recordButton->setChecked(false);
    recorder = Recorder();
    recording = false;

}