| 111 | } |
| 112 | |
| 113 | void SynthController::setNewTimeSeconds(double inNewTime) |
| 114 | { |
| 115 | jassert(inNewTime >= 0); |
| 116 | mCurrentTime = inNewTime; |
| 117 | mCurrentSampleIndex = static_cast<int>(std::round(inNewTime * mSampleRate)); |
| 118 | _updateCurrentEventIndex(); |
| 119 | _sanitizeVoices(); |
| 120 | } |
| 121 | |
| 122 | double SynthController::getCurrentTimeSeconds() const |
| 123 | { |
no outgoing calls
no test coverage detected