- fixed some warnings and updated vectors.h

This commit is contained in:
Christoph Oelckers 2022-10-15 12:10:01 +02:00
commit 57add9a45c
3 changed files with 29 additions and 11 deletions

View file

@ -126,7 +126,7 @@ bool InterplayDecoder::FillSamples(void *buff, int len)
audio.Packets.pop_front();
plock.unlock();
int nSamples = pkt.nSize;
int nSamples = (int)pkt.nSize;
const uint8_t *samplePtr = pkt.pData.get();
if (audio.bCompressed)
{
@ -153,7 +153,7 @@ bool InterplayDecoder::FillSamples(void *buff, int len)
audio.samples[audio.nWrite++] = predictor[ch];
// toggle channel
ch ^= stereo;
ch ^= stereo ? 1 : 0;
}
}
else if (audio.nBitDepth == 8)