removed trailing whitespaces

This commit is contained in:
badaix 2016-11-14 22:48:07 +01:00
parent fa65490192
commit 043f76e35e
9 changed files with 12 additions and 12 deletions

View file

@ -69,13 +69,13 @@ void OggEncoder::encode(const msg::PcmChunk* chunk)
}
else if (sampleFormat_.sampleSize == 2)
{
int16_t* chunkBuffer = (int16_t*)chunk->payload;
int16_t* chunkBuffer = (int16_t*)chunk->payload;
for (int i=0; i<frames; i++)
buffer[channel][i]= chunkBuffer[sampleFormat_.channels*i + channel] / 32768.f;
}
else if (sampleFormat_.sampleSize == 4)
{
int32_t* chunkBuffer = (int32_t*)chunk->payload;
int32_t* chunkBuffer = (int32_t*)chunk->payload;
for (int i=0; i<frames; i++)
buffer[channel][i]= chunkBuffer[sampleFormat_.channels*i + channel] / 2147483648.f;
}