MCPcopy Create free account
hub / github.com/0xShug0/audio.cpp / seconds_to_samples

Function seconds_to_samples

src/framework/text/subtitle.cpp:48–50  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

46}
47
48int64_t seconds_to_samples(double seconds, int sample_rate) {
49 return static_cast<int64_t>(std::llround(seconds * static_cast<double>(sample_rate)));
50}
51
52std::vector<std::string> wrap_words(
53 const std::vector<runtime::WordTimestamp> & words,

Callers 1

build_subtitle_blocksFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected