mirror of
https://github.com/cookiengineer/audacity
synced 2025-06-16 08:09:32 +02:00
Revert "Bug 2508 - Macros: Export2 handles channels > 2 incorrectly"
This reverts commit 2ecc98225f93e8c3fc85ce61991d0f33364e8b8e. This is the one I was supposed to revert.
This commit is contained in:
parent
76460c73da
commit
52bde299aa
@ -487,8 +487,7 @@ 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++)
|
||||
{
|
||||
@ -496,26 +495,7 @@ bool Exporter::Process(unsigned numChannels,
|
||||
{
|
||||
mFormat = i;
|
||||
mSubFormat = j;
|
||||
|
||||
// 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();
|
||||
return CheckFilename() && ExportTracks();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user