Fix Windows warnings

This commit is contained in:
badaix 2020-04-10 13:27:08 +02:00
parent ade0ee7be3
commit e5047f1aff
12 changed files with 167 additions and 165 deletions

View file

@ -104,7 +104,7 @@ bool OggDecoder::decode(msg::PcmChunk* chunk)
(-1.<=range<=1.) to whatever PCM format and write it out */
while ((samples = vorbis_synthesis_pcmout(&vd, &pcm)) > 0)
{
size_t bytes = sampleFormat_.sampleSize() * vi.channels * samples;
uint32_t bytes = sampleFormat_.sampleSize() * vi.channels * samples;
chunk->payload = (char*)realloc(chunk->payload, chunk->payloadSize + bytes);
for (int channel = 0; channel < vi.channels; ++channel)
{