MCPcopy Create free account
hub / github.com/Ableton/link / timeAtSample

Method timeAtSample

include/ableton/util/SampleTiming.hpp:40–45  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

38 }
39
40 std::chrono::microseconds timeAtSample(const double sample) const
41 {
42 using namespace std::chrono;
43 return mBufferBegin
44 + duration_cast<microseconds>(duration<double>{sample / mSampleRate});
45 }
46
47 std::chrono::microseconds mBufferBegin;
48 double mSampleRate;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected