mirror of
https://github.com/cookiengineer/audacity
synced 2026-02-16 15:57:52 +01:00
Remove many mentions of sampleCount with auto and decltype...
... This makes much code agnostic about how other things (functions and arguments) are typed. Many of these neeed to become size_t instead of sampleCount.
This commit is contained in:
@@ -1764,7 +1764,7 @@ int ExportMP3::Export(AudacityProject *project,
|
||||
exporter.SetChannel(CHANNEL_STEREO);
|
||||
}
|
||||
|
||||
sampleCount inSamples = exporter.InitializeStream(channels, rate);
|
||||
auto inSamples = exporter.InitializeStream(channels, rate);
|
||||
if (((int)inSamples) < 0) {
|
||||
wxMessageBox(_("Unable to initialize MP3 stream"));
|
||||
return false;
|
||||
@@ -1829,7 +1829,7 @@ int ExportMP3::Export(AudacityProject *project,
|
||||
ProgressDialog progress(wxFileName(fName).GetName(), title);
|
||||
|
||||
while (updateResult == eProgressSuccess) {
|
||||
sampleCount blockLen = mixer->Process(inSamples);
|
||||
auto blockLen = mixer->Process(inSamples);
|
||||
|
||||
if (blockLen == 0) {
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user