mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-15 19:16:40 +01:00
triggerbox: map available channels across all output channels
This means that mono regions get played in stereo (or higher)
This commit is contained in:
parent
cf8f0b4702
commit
c2004772c4
1 changed files with 3 additions and 1 deletions
|
|
@ -823,11 +823,13 @@ AudioTrigger::run (BufferSet& bufs, pframes_t nframes, pframes_t dest_offset, bo
|
|||
assert (ar);
|
||||
assert (active());
|
||||
|
||||
const size_t chns = std::max (bufs.count().n_audio(), ar->n_channels());
|
||||
|
||||
while (nframes) {
|
||||
|
||||
pframes_t this_read = (pframes_t) std::min ((samplecnt_t) nframes, (last_sample - read_index));
|
||||
|
||||
for (uint64_t chn = 0; chn < ar->n_channels(); ++chn) {
|
||||
for (uint64_t chn = 0; chn < chns; ++chn) {
|
||||
|
||||
uint64_t channel = chn % data.size();
|
||||
Sample* src = data[channel] + read_index;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue