MCPcopy Create free account
hub / github.com/OpenShot/libopenshot / getTotalLength

Method getTotalLength

src/AudioReaderSource.cpp:124–131  ·  view source on GitHub ↗

Get the total length (in samples) of this audio source

Source from the content-addressed store, hash-verified

122
123// Get the total length (in samples) of this audio source
124juce::int64 AudioReaderSource::getTotalLength() const
125{
126 // Get the length
127 if (reader)
128 return reader->info.sample_rate * reader->info.duration;
129 else
130 return 0;
131}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected