Skip to content
Extraits de code Groupes Projets

Draft: improve the audio vizualiser

Fermé Elliu a demandé de fusionner timingView-improve vers master

Fichiers

+ 7
0
@@ -296,6 +296,13 @@ AudioContext::Stream::getBitRate() const noexcept
return codecContext->bit_rate;
}
quint64
AudioContext::Stream::getLength() const noexcept
{
// The whole file duration, not individual streams.
return quint64(std::chrono::duration_cast<std::chrono::milliseconds>(std::chrono::microseconds(dataFormat->duration)).count());
}
// Get the information about the decoded state of this stream
bool
AudioContext::Stream::isDecoded() const noexcept
Chargement en cours