MCPcopy Create free account
hub / github.com/adamstark/AudioFile / getLengthInSeconds

Method getLengthInSeconds

AudioFile.h:377–380  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

375//=============================================================
376template <class T>
377double AudioFile<T>::getLengthInSeconds() const
378{
379 return static_cast<double> (getNumSamplesPerChannel()) / static_cast<double> (sampleRate);
380}
381
382//=============================================================
383template <class T>

Callers 2

Calls

no outgoing calls

Tested by 1