MCPcopy Create free account
hub / github.com/DamRsn/NeuralNote / setPlayheadPositionSeconds

Method setPlayheadPositionSeconds

NeuralNote/Source/Player.cpp:160–166  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

158}
159
160void Player::setPlayheadPositionSeconds(double inNewPosition)
161{
162 if (inNewPosition >= 0 && inNewPosition < mProcessor->getSourceAudioManager()->getAudioSampleDuration()) {
163 mSynthController->setNewTimeSeconds(inNewPosition);
164 mPlayheadTime = inNewPosition;
165 }
166}
167
168SynthController* Player::getSynthController() const
169{

Callers 1

setPlayheadTimeMethod · 0.80

Calls 3

getSourceAudioManagerMethod · 0.80
setNewTimeSecondsMethod · 0.80

Tested by

no test coverage detected