void RecordMove(int iirec) { /* Note we don't reclaim buffer when over-recording */ rgirecMin[iirec] = iRecNext; Recorder(); rgirecMax[iirec] = iRecNext; }
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; }