mirror of
https://github.com/cookiengineer/audacity
synced 2025-10-25 15:53:52 +02:00
Type agnosticism for some other variables that were not sampleCount...
... in some cases, this fixes narrowings.
This commit is contained in:
@@ -311,7 +311,7 @@ int ExportFLAC::Export(AudacityProject *project,
|
||||
numChannels, SAMPLES_PER_RUN, false,
|
||||
rate, format, true, mixerSpec);
|
||||
|
||||
int i, j;
|
||||
int i;
|
||||
FLAC__int32 **tmpsmplbuf = new FLAC__int32*[numChannels];
|
||||
for (i = 0; i < numChannels; i++) {
|
||||
tmpsmplbuf[i] = (FLAC__int32 *) calloc(SAMPLES_PER_RUN, sizeof(FLAC__int32));
|
||||
@@ -332,12 +332,12 @@ int ExportFLAC::Export(AudacityProject *project,
|
||||
for (i = 0; i < numChannels; i++) {
|
||||
samplePtr mixed = mixer->GetBuffer(i);
|
||||
if (format == int24Sample) {
|
||||
for (j = 0; j < samplesThisRun; j++) {
|
||||
for (decltype(samplesThisRun) j = 0; j < samplesThisRun; j++) {
|
||||
tmpsmplbuf[i][j] = ((int *)mixed)[j];
|
||||
}
|
||||
}
|
||||
else {
|
||||
for (j = 0; j < samplesThisRun; j++) {
|
||||
for (decltype(samplesThisRun) j = 0; j < samplesThisRun; j++) {
|
||||
tmpsmplbuf[i][j] = ((short *)mixed)[j];
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user