MCPcopy Create free account
hub / github.com/StrangeLoopsAudio/gRainbow / timeToSample

Method timeToSample

Source/Components/TrimSelection.cpp:239–241  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

237}
238
239int TrimSelection::timeToSample(double time) const {
240 return static_cast<int>(time * mSampleRate);
241}
242
243void TrimSelection::MarkerMouseDragged(PointMarker& marker, const juce::MouseEvent& e) {
244 const double x = xPositionToTime(e.getEventRelativeTo(this).position.x);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected