| 469 | } |
| 470 | |
| 471 | void LooperRecorder::SyncLoopLengths() |
| 472 | { |
| 473 | if (mSpeed <= 0) //avoid crashing |
| 474 | return; |
| 475 | |
| 476 | for (int i = 0; i < mLoopers.size(); ++i) |
| 477 | { |
| 478 | if (mLoopers[i]) |
| 479 | { |
| 480 | if (mSpeed != 1) |
| 481 | mLoopers[i]->ResampleForSpeed(mLoopers[i]->GetPlaybackSpeed()); |
| 482 | mLoopers[i]->RecalcLoopLength(); |
| 483 | } |
| 484 | } |
| 485 | |
| 486 | mBaseTempo = TheTransport->GetTempo(); |
| 487 | } |
| 488 | |
| 489 | void LooperRecorder::Commit(Looper* looper) |
| 490 | { |
nothing calls this directly
no test coverage detected