diff --git a/src/SFML/Audio/SoundFileReaderWav.cpp b/src/SFML/Audio/SoundFileReaderWav.cpp index a778f41e6..920012f23 100644 --- a/src/SFML/Audio/SoundFileReaderWav.cpp +++ b/src/SFML/Audio/SoundFileReaderWav.cpp @@ -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();