mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-31 09:21:18 +02:00
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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user