mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-10 08:36:32 +01:00
Fix panning to mono.
git-svn-id: svn://localhost/ardour2/branches/3.0@3688 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
025f7a1c69
commit
23e205fdd1
1 changed files with 12 additions and 8 deletions
|
|
@ -1311,10 +1311,12 @@ Panner::distribute_no_automation (BufferSet& inbufs, BufferSet& outbufs, nframes
|
||||||
dst.read_from(inbufs.get_audio(0), nframes, offset);
|
dst.read_from(inbufs.get_audio(0), nframes, offset);
|
||||||
|
|
||||||
// accumulate starting with the second
|
// accumulate starting with the second
|
||||||
|
if (inbufs.count().n_audio() > 0) {
|
||||||
BufferSet::audio_iterator i = inbufs.audio_begin();
|
BufferSet::audio_iterator i = inbufs.audio_begin();
|
||||||
for (++i; i != inbufs.audio_end(); ++i) {
|
for (++i; i != inbufs.audio_end(); ++i) {
|
||||||
dst.accumulate_from(*i, nframes, offset);
|
dst.accumulate_from(*i, nframes, offset);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
|
|
@ -1324,10 +1326,12 @@ Panner::distribute_no_automation (BufferSet& inbufs, BufferSet& outbufs, nframes
|
||||||
dst.read_from(inbufs.get_audio(0), nframes, offset);
|
dst.read_from(inbufs.get_audio(0), nframes, offset);
|
||||||
|
|
||||||
// accumulate (with gain) starting with the second
|
// accumulate (with gain) starting with the second
|
||||||
|
if (inbufs.count().n_audio() > 0) {
|
||||||
BufferSet::audio_iterator i = inbufs.audio_begin();
|
BufferSet::audio_iterator i = inbufs.audio_begin();
|
||||||
for (++i; i != inbufs.audio_end(); ++i) {
|
for (++i; i != inbufs.audio_end(); ++i) {
|
||||||
dst.accumulate_with_gain_from(*i, nframes, offset, gain_coeff);
|
dst.accumulate_with_gain_from(*i, nframes, offset, gain_coeff);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue