mirror of
https://github.com/SFML/SFML.git
synced 2024-11-28 22:31:09 +08:00
Fixed incorrect sample count reported by the WAV sound file reader
This commit is contained in:
parent
6ab8d43b04
commit
42a6967128
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user