mirror of
https://github.com/cookiengineer/audacity
synced 2025-04-29 23:29:41 +02:00
Bug 2508 - Macros: Export2 handles channels > 2 incorrectly
This commit is contained in:
parent
1478abf3d0
commit
2ecc98225f
@ -487,7 +487,8 @@ bool Exporter::Process(unsigned numChannels,
|
||||
mActualName = mFilename;
|
||||
|
||||
int i = -1;
|
||||
for (const auto &pPlugin : mPlugins) {
|
||||
for (const auto &pPlugin : mPlugins)
|
||||
{
|
||||
++i;
|
||||
for (int j = 0; j < pPlugin->GetFormatCount(); j++)
|
||||
{
|
||||
@ -495,7 +496,26 @@ bool Exporter::Process(unsigned numChannels,
|
||||
{
|
||||
mFormat = i;
|
||||
mSubFormat = j;
|
||||
return CheckFilename() && ExportTracks();
|
||||
|
||||
// Gather track information
|
||||
if (!ExamineTracks())
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
// Check for down mixing
|
||||
if (!CheckMix(false))
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
// Ensure filename doesn't interfere with project files.
|
||||
if (!CheckFilename())
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
return ExportTracks();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user