mirror of
https://github.com/overte-org/overte.git
synced 2025-08-10 08:48:53 +02:00
remove warnings about signed-unsigned comparison
This commit is contained in:
parent
db717b980b
commit
e139a6dc95
2 changed files with 3 additions and 3 deletions
|
@ -706,7 +706,7 @@ void Audio::addSpatialAudioToBuffer(unsigned int sampleTime, const QByteArray& s
|
|||
mixedSamplesCount = (mixedSamplesCount < numSamples) ? mixedSamplesCount : numSamples;
|
||||
|
||||
const int16_t* spatial = reinterpret_cast<const int16_t*>(spatialAudio.data());
|
||||
for (int i = 0; i < mixedSamplesCount; i++) {
|
||||
for (unsigned int i = 0; i < mixedSamplesCount; i++) {
|
||||
int existingSample = _spatialAudioRingBuffer[i + offset];
|
||||
int newSample = spatial[i];
|
||||
int sumOfSamples = existingSample + newSample;
|
||||
|
|
|
@ -540,7 +540,7 @@ int AudioReflector::analyzePathsSingleStep() {
|
|||
|
||||
QVector<AudioPath*>* pathsLists[] = { &_inboundAudioPaths, &_localAudioPaths };
|
||||
|
||||
for(int i = 0; i < sizeof(pathsLists) / sizeof(pathsLists[0]); i ++) {
|
||||
for(unsigned int i = 0; i < sizeof(pathsLists) / sizeof(pathsLists[0]); i++) {
|
||||
|
||||
QVector<AudioPath*>& pathList = *pathsLists[i];
|
||||
|
||||
|
|
Loading…
Reference in a new issue