Fixed incorrect sample count reported by the WAV sound file reader

This commit is contained in:
Laurent Gomila 2015-03-01 22:40:26 +01:00 committed by Mario Liebisch
parent 6ab8d43b04
commit 42a6967128

View File

@ -242,7 +242,7 @@ bool SoundFileReaderWav::parseHeader(Info& info)
// "data" chunk
// Compute the total number of samples
info.sampleCount = subChunkSize / info.channelCount / m_bytesPerSample;
info.sampleCount = subChunkSize / m_bytesPerSample;
// Store the starting position of samples in the file
m_dataStart = m_stream->tell();