oggdec: fix for big endian / libvoris

git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-experimental@1114 e54a6e83-5905-42d5-8d5c-058d10e6a962
This commit is contained in:
seife
2011-02-05 15:03:02 +00:00
parent 0f1f445921
commit e2b2390d1c

View File

@@ -30,6 +30,7 @@
#include <config.h>
#endif
#include <endian.h>
#include <errno.h>
#include <oggdec.h>
#include <linux/soundcard.h>
@@ -90,7 +91,11 @@ CBaseDec::RetCode COggDec::Decoder(FILE *in, const int OutputFd, State* const st
SetMetaData(&vf, meta_data);
#if __BYTE_ORDER == __LITTLE_ENDIAN || USE_TREMOR
audioDecoder->PrepareClipPlay(ov_info(&vf,0)->channels, ov_info(&vf,0)->rate, 16, 1);
#else
audioDecoder->PrepareClipPlay(ov_info(&vf,0)->channels, ov_info(&vf,0)->rate, 16, 0);
#endif
/* up and away ... */
mSlotSize = MAX_OUTPUT_SAMPLES * 2 * ov_info(&vf,0)->channels;