From 42a6967128d3dc7916f8862068ce836a32972283 Mon Sep 17 00:00:00 2001
From: Laurent Gomila <laurent.gom@gmail.com>
Date: Sun, 1 Mar 2015 22:40:26 +0100
Subject: [PATCH] Fixed incorrect sample count reported by the WAV sound file
 reader

---
 src/SFML/Audio/SoundFileReaderWav.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/SFML/Audio/SoundFileReaderWav.cpp b/src/SFML/Audio/SoundFileReaderWav.cpp
index a778f41e..920012f2 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();