mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-24 01:54:22 +00:00
Minor thumbnail fix.
This commit is contained in:
parent
4dcf550cd0
commit
754ba64afc
1 changed files with 1 additions and 1 deletions
|
|
@ -742,7 +742,7 @@ bool AudioThumbnail::isFullyLoaded() const noexcept
|
|||
|
||||
double AudioThumbnail::getProportionComplete() const noexcept
|
||||
{
|
||||
return jlimit (0.0, 1.0, numSamplesFinished / (double) totalSamples);
|
||||
return jlimit (0.0, 1.0, numSamplesFinished / (double) jmax ((int64) 1, totalSamples));
|
||||
}
|
||||
|
||||
int64 AudioThumbnail::getNumSamplesFinished() const noexcept
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue