What a fix, #113 (direct PCM WAV reading) now quite much implemented and working.

Originally committed to SVN as r1529.
This commit is contained in:
Niels Martin Hansen 2007-08-22 21:06:16 +00:00
parent 93f6ef6d7a
commit 128dd0df0f
1 changed files with 1 additions and 1 deletions

View File

@ -58,7 +58,7 @@ void PCMAudioProvider::GetAudio(void *buf, __int64 start, __int64 count)
if (samples_can_do > count) samples_can_do = count;
// Read as many samples we can
file.Seek(ip.start_byte + (start - ip.start_sample) * bytes_per_sample, wxFromStart);
file.Seek(ip.start_byte + (start - ip.start_sample) * bytes_per_sample * channels, wxFromStart);
file.Read(buf, samples_can_do * bytes_per_sample * channels);
// Update data