neutrino: add --with-tremor configure option to use libvorbisidec

git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-experimental@1113 e54a6e83-5905-42d5-8d5c-058d10e6a962


Origin commit data
------------------
Branch: ni/coolstream
Commit: 0f1f445921
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:
Stefan Seyfried
2011-02-05 14:54:24 +00:00
parent dc26708e1f
commit de11248642
4 changed files with 23 additions and 6 deletions

View File

@@ -137,14 +137,14 @@ CBaseDec::RetCode COggDec::Decoder(FILE *in, const int OutputFd, State* const st
}
bytes=0;
if(mSeekable)
#ifdef DBOX
#ifdef USE_TREMOR
mSlotTime[mWriteSlot] = ov_time_tell(&vf);
#else
mSlotTime[mWriteSlot] = (ogg_int64_t)(1000 * ov_time_tell(&vf));
#endif
do
{
#ifdef DBOX
#ifdef USE_TREMOR
rval = ov_read(&vf, mPcmSlots[mWriteSlot]+bytes, mSlotSize-bytes, &bitstream);
#else
rval = ov_read(&vf, mPcmSlots[mWriteSlot]+bytes, mSlotSize-bytes, 0, 2, 1, &bitstream);
@@ -286,7 +286,7 @@ void COggDec::SetMetaData(OggVorbis_File* vf, CAudioMetaData* m)
m->bitrate = ov_info(vf,0)->bitrate_nominal;
m->samplerate = ov_info(vf,0)->rate;
if(mSeekable)
#ifdef DBOX
#ifdef USE_TREMOR
m->total_time = (time_t) ov_time_total(vf, 0) / 1000;
#else
m->total_time = (time_t) ov_time_total(vf, 0);