fix thinko with incorrect argument to AudioRegion::region_from_sources()

This commit is contained in:
Paul Davis 2020-12-02 23:22:12 -07:00
parent 7c56b9b2fc
commit 7b0d812e92

View file

@ -587,7 +587,7 @@ AudioRegion::read_at (Sample *buf, Sample *mixdown_buffer, float *gain_buffer,
may need to mix with the existing data.
*/
if (read_from_sources (_sources, lsamples, mixdown_buffer, psamples, to_read, chan_n) != to_read) {
if (read_from_sources (_sources, lsamples, mixdown_buffer, position, to_read, chan_n) != to_read) {
return 0;
}