@@ -384,7 +384,7 @@ bool AudioFile<T>::setAudioBuffer (AudioBuffer& newBuffer)
384
384
385
385
if (numChannels <= 0 )
386
386
{
387
- assert (false && " The buffer your are trying to use has no channels" );
387
+ assert (false && " The buffer you are trying to use has no channels" );
388
388
return false ;
389
389
}
390
390
@@ -1309,8 +1309,7 @@ T AudioFile<T>::twentyFourBitIntToSample (int32_t sample)
1309
1309
{
1310
1310
return static_cast <T> (sample) / static_cast <T> (8388608 .);
1311
1311
}
1312
-
1313
- else if (std::numeric_limits<T>::is_integer)
1312
+ else if (std::numeric_limits<T>::is_integer)
1314
1313
{
1315
1314
return resampleIntegerSample<int32_t , T>(sample);
1316
1315
}
@@ -1327,7 +1326,7 @@ int32_t AudioFile<T>::sampleToTwentyFourBitInt (T sample)
1327
1326
}
1328
1327
else
1329
1328
{
1330
- return resampleIntegerSample<T, int32_t >(sample);
1329
+ return resampleIntegerSample<T, int32_t > (sample);
1331
1330
}
1332
1331
}
1333
1332
@@ -1339,10 +1338,9 @@ T AudioFile<T>::sixteenBitIntToSample (int16_t sample)
1339
1338
{
1340
1339
return static_cast <T> (sample) / static_cast <T> (32768 .);
1341
1340
}
1342
-
1343
- else if (std::numeric_limits<T>::is_integer)
1341
+ else if (std::numeric_limits<T>::is_integer)
1344
1342
{
1345
- return resampleIntegerSample<int16_t , T>(sample);
1343
+ return resampleIntegerSample<int16_t , T> (sample);
1346
1344
}
1347
1345
}
1348
1346
@@ -1357,7 +1355,7 @@ int16_t AudioFile<T>::sampleToSixteenBitInt (T sample)
1357
1355
}
1358
1356
else
1359
1357
{
1360
- return resampleIntegerSample<T, int16_t >(sample);
1358
+ return resampleIntegerSample<T, int16_t > (sample);
1361
1359
}
1362
1360
}
1363
1361
@@ -1373,7 +1371,7 @@ int8_t AudioFile<T>::sampleToSingleByte (T sample)
1373
1371
}
1374
1372
else
1375
1373
{
1376
- return resampleIntegerSample<T, int8_t >(sample);
1374
+ return resampleIntegerSample<T, int8_t > (sample);
1377
1375
}
1378
1376
}
1379
1377
@@ -1385,10 +1383,9 @@ T AudioFile<T>::singleByteToSample (uint8_t sample)
1385
1383
{
1386
1384
return static_cast <T> (sample - 128 ) / static_cast <T> (128 .);
1387
1385
}
1388
-
1389
- else if (std::numeric_limits<T>::is_integer)
1386
+ else if (std::numeric_limits<T>::is_integer)
1390
1387
{
1391
- return resampleIntegerSample<int8_t , T>(sample - 0x7F );
1388
+ return resampleIntegerSample<int8_t , T> (sample - 0x7F );
1392
1389
}
1393
1390
}
1394
1391
@@ -1400,12 +1397,12 @@ T AudioFile<T>::singleByteToSample (int8_t sample)
1400
1397
{
1401
1398
return static_cast <T> (sample) / static_cast <T> (128 .);
1402
1399
}
1403
-
1404
- else if (std::numeric_limits<T>::is_integer)
1400
+ else if (std::numeric_limits<T>::is_integer)
1405
1401
{
1406
- return resampleIntegerSample<int8_t , T>(sample);
1402
+ return resampleIntegerSample<int8_t , T> (sample);
1407
1403
}
1408
1404
}
1405
+
1409
1406
// =============================================================
1410
1407
template <class T >
1411
1408
T AudioFile<T>::clamp (T value, T minValue, T maxValue)
0 commit comments