mirror of
https://github.com/badaix/snapcast.git
synced 2025-05-24 22:46:14 +02:00
flac and ogg decoding on big endian
This commit is contained in:
parent
eb328564ad
commit
b29fadc465
3 changed files with 10 additions and 4 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue