mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-08-14 18:37:47 +02:00
Fix build warning in Audio.cpp
\interface\src\Audio.cpp(309): warning C4018: '<' : signed/unsigned mismatch
This commit is contained in:
parent
107fbf8c29
commit
1503946b7c
1 changed files with 1 additions and 1 deletions
|
@ -306,7 +306,7 @@ void linearResampling(int16_t* sourceSamples, int16_t* destinationSamples,
|
|||
} else {
|
||||
// this is a 48 to 24 resampling but both source and destination are two channels
|
||||
// squish two samples into one in each channel
|
||||
for (int i = 0; i < numSourceSamples; i += 4) {
|
||||
for (unsigned int i = 0; i < numSourceSamples; i += 4) {
|
||||
destinationSamples[i / 2] = (sourceSamples[i] / 2) + (sourceSamples[i + 2] / 2);
|
||||
destinationSamples[(i / 2) + 1] = (sourceSamples[i + 1] / 2) + (sourceSamples[i + 3] / 2);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue