mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-09-15 17:33:37 +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
Origin commit data
------------------
Branch: ni/coolstream
Commit: e2b2390d1c
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2011-02-05 (Sat, 05 Feb 2011)
------------------
This commit was generated by Migit
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