projects
/
ardour.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix importing to a fixed-point format with resampling
[ardour.git]
/
libs
/
ardour
/
import.cc
diff --git
a/libs/ardour/import.cc
b/libs/ardour/import.cc
index 4c740c4d31d7a3449660c240da858c913f472fed..977729ddc9a586f5c6082b547966a677a9842903 100644
(file)
--- 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);