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