| 964 | } |
| 965 | |
| 966 | void Looper::Commit(RollingBuffer* commitBuffer, bool replaceOnCommit, float offsetMs) |
| 967 | { |
| 968 | if (mRecorder) |
| 969 | { |
| 970 | mRecorder->ResetSpeed(); |
| 971 | mLastCommit = mRecorder->IncreaseCommitCount(); |
| 972 | } |
| 973 | BakeVolume(); |
| 974 | |
| 975 | mLastCommitTime = gTime; |
| 976 | mLoopCount = 0; |
| 977 | |
| 978 | mLoopPosOffset = 0; |
| 979 | mLoopPosOffsetSlider->DisableLFO(); |
| 980 | mAllowScratch = false; |
| 981 | mScratchSpeed = 1; |
| 982 | mFourTet = 0; |
| 983 | mPitchShift = 1; |
| 984 | if (mGranulator) |
| 985 | mGranulator->OnCommit(); |
| 986 | |
| 987 | mCommitBuffer = commitBuffer; |
| 988 | mReplaceOnCommit = replaceOnCommit; |
| 989 | mCommitMsOffset = offsetMs; |
| 990 | } |
| 991 | |
| 992 | void Looper::SetMute(double time, bool mute) |
| 993 | { |
no test coverage detected