flac and ogg decoding on big endian

This commit is contained in:
badaix 2016-04-01 08:33:42 +02:00
parent eb328564ad
commit b29fadc465
3 changed files with 10 additions and 4 deletions

View file

@ -23,6 +23,7 @@
#include "oggDecoder.h"
#include "common/snapException.h"
#include "common/endian.h"
#include "common/log.h"
@ -121,7 +122,7 @@ bool OggDecoder::decode(msg::PcmChunk* chunk)
val=32767;
else if(val<-32768)
val=-32768;
*ptr=val;
*ptr=SWAP_16(val);
ptr+=vi.channels;
}
}