mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-01 03:17:39 +01:00
Fix audio source names when importing files with > 2 and <= 26 channels.
This code presumably intended to name sources "foo%a", "foo%b" etc, but since it was incorrectly appending the character as an integer sources instead ended up being named "foo%97", "foo%98" etc. Also changes the branching logic to use this branch upto 26 channels, rather than just upto 25 channels, as that seems to have been the intention.
This commit is contained in:
parent
4d7d58196f
commit
8810c36c6e
1 changed files with 2 additions and 2 deletions
|
|
@ -4908,9 +4908,9 @@ Session::format_audio_source_name (const string& legalized_base, uint32_t nchan,
|
|||
sstr << "%R";
|
||||
}
|
||||
} else if (nchan > 2) {
|
||||
if (nchan < 26) {
|
||||
if (nchan <= 26) {
|
||||
sstr << '%';
|
||||
sstr << 'a' + chan;
|
||||
sstr << static_cast<char>('a' + chan);
|
||||
} else {
|
||||
/* XXX what? more than 26 channels! */
|
||||
sstr << '%';
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue