13
0

Fix importing to a fixed-point format with resampling

ResampledImportableSource::read() returns audio-frames;
multiplication by number of channels read beyond the buffer.
This commit is contained in:
Robin Gareus 2018-12-07 04:15:55 +01:00
parent dd4c788d3e
commit 0284203551
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04

View File

@ -278,7 +278,7 @@ write_audio_data_to_new_files (ImportableSource* source, ImportStatus& status,
break;
}
peak = compute_peak (data.get(), nread * channels, peak);
peak = compute_peak (data.get(), nread, peak);
read_count += nread / channels;
status.progress = 0.5 * read_count / (source->ratio() * source->length() * channels);