Skip to content
Extraits de code Groupes Projets

Draft: improve the audio vizualiser

Tous les fils de conversation ont été résolus !
Fermé
Elliurequested to merge
timingView-improve into master
Tous les fils de conversation ont été résolus !

Fichiers

+ 7
0
@@ -298,6 +298,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