X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=libs%2Fardour%2Fimport.cc;h=977729ddc9a586f5c6082b547966a677a9842903;hb=0284203551f0f652a335e734a0c8ccd25333c27d;hp=4c740c4d31d7a3449660c240da858c913f472fed;hpb=dd4c788d3e21b4f697f7eb6f2e64bc0d94ebf7fb;p=ardour.git diff --git a/libs/ardour/import.cc b/libs/ardour/import.cc index 4c740c4d31..977729ddc9 100644 --- a/libs/ardour/import.cc +++ b/libs/ardour/import.cc @@ -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);