mirror of https://github.com/odrling/Aegisub
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:
parent
93f6ef6d7a
commit
128dd0df0f
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue