Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/LabSound/LabSound
/ timeToSampleFrame
Function
timeToSampleFrame
src/internal/AudioUtilities.h:28–31 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
26
27
template <typename T, typename U>
28
inline int timeToSampleFrame(T time, U sampleRate)
29
{
30
return static_cast<int>(std::round(time * sampleRate));
31
}
32
}
33
34
} // lab
Callers
2
valuesForTimeRangeImpl
Method · 0.85
bufferLengthForDelay
Method · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected