mirror of
https://github.com/SFML/SFML.git
synced 2024-12-01 15:51:04 +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
|
// "data" chunk
|
||||||
|
|
||||||
// Compute the total number of samples
|
// 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
|
// Store the starting position of samples in the file
|
||||||
m_dataStart = m_stream->tell();
|
m_dataStart = m_stream->tell();
|
||||||
|
Loading…
Reference in New Issue
Block a user