MCPcopy Create free account
hub / github.com/Tencent/libpag / SampleLengthToCount

Function SampleLengthToCount

viewer/src/utils/AudioUtils.cpp:24–26  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

22namespace pag::Utils {
23
24int64_t SampleLengthToCount(int64_t length, int channels) {
25 return length / channels / 2;
26}
27
28int64_t SampleLengthToTime(int64_t length, int sampleRate, int channels) {
29 int64_t count = SampleLengthToCount(length, channels);

Callers 2

SampleLengthToTimeFunction · 0.85
sendAudioBytesMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected