Revert "A bit more accurate calculation of the AIFF audio length."

This reverts commit 15a1505880.
This commit is contained in:
Tsuda Kageyu 2015-08-31 16:20:58 +09:00
parent 12f59d774e
commit 60558d6a4a

View File

@ -179,7 +179,7 @@ void RIFF::AIFF::Properties::read(File *file)
d->sampleRate = static_cast<int>(sampleRate + 0.5);
if(d->sampleFrames > 0 && d->sampleRate > 0) {
const double length = d->sampleFrames * 1000.0 / sampleRate;
const double length = d->sampleFrames * 1000.0 / d->sampleRate;
d->length = static_cast<int>(length + 0.5);
d->bitrate = static_cast<int>(streamLength * 8.0 / length + 0.5);
}