mirror of
https://github.com/cookiengineer/audacity
synced 2025-07-30 15:39:27 +02:00
Remove always true argument of ExportPlugin::CreateMixer
This commit is contained in:
parent
4871584cb3
commit
c9a9f0f906
@ -221,7 +221,7 @@ std::unique_ptr<Mixer> ExportPlugin::CreateMixer(const TrackList &tracks,
|
||||
double startTime, double stopTime,
|
||||
unsigned numOutChannels, size_t outBufferSize, bool outInterleaved,
|
||||
double outRate, sampleFormat outFormat,
|
||||
bool highQuality, MixerSpec *mixerSpec)
|
||||
MixerSpec *mixerSpec)
|
||||
{
|
||||
WaveTrackConstArray inputTracks;
|
||||
|
||||
@ -241,7 +241,7 @@ std::unique_ptr<Mixer> ExportPlugin::CreateMixer(const TrackList &tracks,
|
||||
startTime, stopTime,
|
||||
numOutChannels, outBufferSize, outInterleaved,
|
||||
outRate, outFormat,
|
||||
highQuality, mixerSpec);
|
||||
true, mixerSpec);
|
||||
}
|
||||
|
||||
void ExportPlugin::InitProgress(std::unique_ptr<ProgressDialog> &pDialog,
|
||||
|
@ -139,7 +139,7 @@ protected:
|
||||
double startTime, double stopTime,
|
||||
unsigned numOutChannels, size_t outBufferSize, bool outInterleaved,
|
||||
double outRate, sampleFormat outFormat,
|
||||
bool highQuality = true, MixerSpec *mixerSpec = NULL);
|
||||
MixerSpec *mixerSpec);
|
||||
|
||||
// Create or recycle a dialog.
|
||||
static void InitProgress(std::unique_ptr<ProgressDialog> &pDialog,
|
||||
|
@ -503,7 +503,6 @@ ProgressResult ExportCL::Export(AudacityProject *project,
|
||||
true,
|
||||
rate,
|
||||
floatSample,
|
||||
true,
|
||||
mixerSpec);
|
||||
|
||||
size_t numBytes = 0;
|
||||
|
@ -1015,7 +1015,7 @@ ProgressResult ExportFFmpeg::Export(AudacityProject *project,
|
||||
auto mixer = CreateMixer(tracks, selectionOnly,
|
||||
t0, t1,
|
||||
channels, pcmBufferSize, true,
|
||||
mSampleRate, int16Sample, true, mixerSpec);
|
||||
mSampleRate, int16Sample, mixerSpec);
|
||||
|
||||
auto updateResult = ProgressResult::Success;
|
||||
{
|
||||
|
@ -374,7 +374,7 @@ ProgressResult ExportFLAC::Export(AudacityProject *project,
|
||||
auto mixer = CreateMixer(tracks, selectionOnly,
|
||||
t0, t1,
|
||||
numChannels, SAMPLES_PER_RUN, false,
|
||||
rate, format, true, mixerSpec);
|
||||
rate, format, mixerSpec);
|
||||
|
||||
ArraysOf<FLAC__int32> tmpsmplbuf{ numChannels, SAMPLES_PER_RUN, true };
|
||||
|
||||
|
@ -308,7 +308,7 @@ ProgressResult ExportMP2::Export(AudacityProject *project,
|
||||
auto mixer = CreateMixer(tracks, selectionOnly,
|
||||
t0, t1,
|
||||
stereo ? 2 : 1, pcmBufferSize, true,
|
||||
rate, int16Sample, true, mixerSpec);
|
||||
rate, int16Sample, mixerSpec);
|
||||
|
||||
InitProgress( pDialog, fName,
|
||||
selectionOnly
|
||||
|
@ -1902,7 +1902,7 @@ ProgressResult ExportMP3::Export(AudacityProject *project,
|
||||
auto mixer = CreateMixer(tracks, selectionOnly,
|
||||
t0, t1,
|
||||
channels, inSamples, true,
|
||||
rate, floatSample, true, mixerSpec);
|
||||
rate, floatSample, mixerSpec);
|
||||
|
||||
TranslatableString title;
|
||||
if (rmode == MODE_SET) {
|
||||
|
@ -279,7 +279,7 @@ ProgressResult ExportOGG::Export(AudacityProject *project,
|
||||
auto mixer = CreateMixer(tracks, selectionOnly,
|
||||
t0, t1,
|
||||
numChannels, SAMPLES_PER_RUN, false,
|
||||
rate, floatSample, true, mixerSpec);
|
||||
rate, floatSample, mixerSpec);
|
||||
|
||||
InitProgress( pDialog, fName,
|
||||
selectionOnly
|
||||
|
@ -613,7 +613,7 @@ ProgressResult ExportPCM::Export(AudacityProject *project,
|
||||
auto mixer = CreateMixer(tracks, selectionOnly,
|
||||
t0, t1,
|
||||
info.channels, maxBlockLen, true,
|
||||
rate, format, true, mixerSpec);
|
||||
rate, format, mixerSpec);
|
||||
|
||||
InitProgress( pDialog, fName,
|
||||
(selectionOnly
|
||||
|
Loading…
x
Reference in New Issue
Block a user