mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-26 23:13:13 +02:00
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
This commit is contained in:
13
configure.ac
13
configure.ac
@@ -11,6 +11,11 @@ AC_PROG_CXX
|
|||||||
AC_DISABLE_STATIC
|
AC_DISABLE_STATIC
|
||||||
AM_PROG_LIBTOOL
|
AM_PROG_LIBTOOL
|
||||||
|
|
||||||
|
AC_ARG_WITH([tremor], [AS_HELP_STRING([--with-tremor],
|
||||||
|
[use libvorbisidec instead of libogg/libvorbis])],
|
||||||
|
[TREMOR="$withval"],
|
||||||
|
[TREMOR=no])
|
||||||
|
|
||||||
if test "$BOXTYPE" != "tripledragon"; then
|
if test "$BOXTYPE" != "tripledragon"; then
|
||||||
echo "BOXTYPE: $BOXTYPE"
|
echo "BOXTYPE: $BOXTYPE"
|
||||||
TUXBOX_APPS_DVB
|
TUXBOX_APPS_DVB
|
||||||
@@ -22,12 +27,18 @@ fi
|
|||||||
if test "$BOXTYPE" = "tripledragon"; then
|
if test "$BOXTYPE" = "tripledragon"; then
|
||||||
TUXBOX_APPS_LIB_PKGCONFIG(DIRECTFB, directfb)
|
TUXBOX_APPS_LIB_PKGCONFIG(DIRECTFB, directfb)
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if test "$TREMOR" = "yes"; then
|
||||||
|
TUXBOX_APPS_LIB_PKGCONFIG(VORBISIDEC,vorbisidec)
|
||||||
|
AC_DEFINE(USE_TREMOR,1,use libvorbisidec/tremor library)
|
||||||
|
fi
|
||||||
|
AM_CONDITIONAL(USE_TREMOR, test "$TREMOR" = "yes")
|
||||||
|
|
||||||
TUXBOX_APPS_LIB_CONFIG(CURL,curl-config)
|
TUXBOX_APPS_LIB_CONFIG(CURL,curl-config)
|
||||||
TUXBOX_APPS_LIB_CONFIG(FREETYPE,freetype-config)
|
TUXBOX_APPS_LIB_CONFIG(FREETYPE,freetype-config)
|
||||||
# TUXBOX_APPS_LIB_PKGCONFIG(OPENSSL,openssl)
|
# TUXBOX_APPS_LIB_PKGCONFIG(OPENSSL,openssl)
|
||||||
TUXBOX_APPS_LIB_PKGCONFIG(ID3TAG,libid3tag)
|
TUXBOX_APPS_LIB_PKGCONFIG(ID3TAG,libid3tag)
|
||||||
TUXBOX_APPS_LIB_PKGCONFIG(MAD,libmad)
|
TUXBOX_APPS_LIB_PKGCONFIG(MAD,libmad)
|
||||||
#TUXBOX_APPS_LIB_PKGCONFIG(VORBISIDEC,tremor)
|
|
||||||
TUXBOX_APPS_LIB_PKGCONFIG(PNG,libpng)
|
TUXBOX_APPS_LIB_PKGCONFIG(PNG,libpng)
|
||||||
TUXBOX_APPS_LIB_PKGCONFIG(AVFORMAT,libavformat)
|
TUXBOX_APPS_LIB_PKGCONFIG(AVFORMAT,libavformat)
|
||||||
TUXBOX_APPS_LIB_PKGCONFIG(AVCODEC,libavcodec)
|
TUXBOX_APPS_LIB_PKGCONFIG(AVCODEC,libavcodec)
|
||||||
|
@@ -24,6 +24,12 @@ SUBDIRS += lcddisplay
|
|||||||
INCLUDES += -I$(top_srcdir)/lib/libtriple
|
INCLUDES += -I$(top_srcdir)/lib/libtriple
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
if USE_TREMOR
|
||||||
|
VORBISLIBS = @VORBISIDEC_LIBS@
|
||||||
|
else
|
||||||
|
VORBISLIBS = -lvorbisfile -lvorbis -logg
|
||||||
|
endif
|
||||||
|
|
||||||
bin_PROGRAMS = neutrino
|
bin_PROGRAMS = neutrino
|
||||||
|
|
||||||
neutrino_SOURCES = neutrino_menue.cpp neutrino.cpp
|
neutrino_SOURCES = neutrino_menue.cpp neutrino.cpp
|
||||||
@@ -69,7 +75,7 @@ neutrino_LDADD = \
|
|||||||
@LIBCS_LIBS@ \
|
@LIBCS_LIBS@ \
|
||||||
@AVFORMAT_LIBS@ \
|
@AVFORMAT_LIBS@ \
|
||||||
@AVUTIL_LIBS@ \
|
@AVUTIL_LIBS@ \
|
||||||
-lvorbisfile -lvorbis -logg \
|
$(VORBISLIBS) \
|
||||||
-lungif \
|
-lungif \
|
||||||
-ljpeg \
|
-ljpeg \
|
||||||
-lrt -lpthread
|
-lrt -lpthread
|
||||||
|
@@ -137,14 +137,14 @@ CBaseDec::RetCode COggDec::Decoder(FILE *in, const int OutputFd, State* const st
|
|||||||
}
|
}
|
||||||
bytes=0;
|
bytes=0;
|
||||||
if(mSeekable)
|
if(mSeekable)
|
||||||
#ifdef DBOX
|
#ifdef USE_TREMOR
|
||||||
mSlotTime[mWriteSlot] = ov_time_tell(&vf);
|
mSlotTime[mWriteSlot] = ov_time_tell(&vf);
|
||||||
#else
|
#else
|
||||||
mSlotTime[mWriteSlot] = (ogg_int64_t)(1000 * ov_time_tell(&vf));
|
mSlotTime[mWriteSlot] = (ogg_int64_t)(1000 * ov_time_tell(&vf));
|
||||||
#endif
|
#endif
|
||||||
do
|
do
|
||||||
{
|
{
|
||||||
#ifdef DBOX
|
#ifdef USE_TREMOR
|
||||||
rval = ov_read(&vf, mPcmSlots[mWriteSlot]+bytes, mSlotSize-bytes, &bitstream);
|
rval = ov_read(&vf, mPcmSlots[mWriteSlot]+bytes, mSlotSize-bytes, &bitstream);
|
||||||
#else
|
#else
|
||||||
rval = ov_read(&vf, mPcmSlots[mWriteSlot]+bytes, mSlotSize-bytes, 0, 2, 1, &bitstream);
|
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->bitrate = ov_info(vf,0)->bitrate_nominal;
|
||||||
m->samplerate = ov_info(vf,0)->rate;
|
m->samplerate = ov_info(vf,0)->rate;
|
||||||
if(mSeekable)
|
if(mSeekable)
|
||||||
#ifdef DBOX
|
#ifdef USE_TREMOR
|
||||||
m->total_time = (time_t) ov_time_total(vf, 0) / 1000;
|
m->total_time = (time_t) ov_time_total(vf, 0) / 1000;
|
||||||
#else
|
#else
|
||||||
m->total_time = (time_t) ov_time_total(vf, 0);
|
m->total_time = (time_t) ov_time_total(vf, 0);
|
||||||
|
@@ -38,7 +38,7 @@
|
|||||||
#include <pthread.h>
|
#include <pthread.h>
|
||||||
#include <basedec.h>
|
#include <basedec.h>
|
||||||
#include <driver/audiometadata.h>
|
#include <driver/audiometadata.h>
|
||||||
#ifdef DBOX
|
#ifdef USE_TREMOR
|
||||||
#include <tremor/ogg.h>
|
#include <tremor/ogg.h>
|
||||||
#include <tremor/ivorbisfile.h>
|
#include <tremor/ivorbisfile.h>
|
||||||
#else
|
#else
|
||||||
|
Reference in New Issue
Block a user