Fix Editor::write_region for multi-channel regions
This method, and ::write_selection() is currently unused. It should perhaps be removed after dome discussion.
This commit is contained in:
parent
ec6cd4539d
commit
b7bbb27c7c
@ -404,11 +404,12 @@ Editor::write_region (string path, boost::shared_ptr<AudioRegion> region)
|
|||||||
|
|
||||||
this_time = min (to_read, chunk_size);
|
this_time = min (to_read, chunk_size);
|
||||||
|
|
||||||
for (vector<boost::shared_ptr<AudioFileSource> >::iterator src=sources.begin(); src != sources.end(); ++src) {
|
uint32_t chn = 0;
|
||||||
|
for (vector<boost::shared_ptr<AudioFileSource> >::iterator src=sources.begin(); src != sources.end(); ++src, ++chn) {
|
||||||
|
|
||||||
fs = (*src);
|
fs = (*src);
|
||||||
|
|
||||||
if (region->read_at (buf, buf, gain_buffer, pos, this_time) != this_time) {
|
if (region->read_at (buf, buf, gain_buffer, pos, this_time, chn) != this_time) {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user