mirror of
https://github.com/openharmony/third_party_libsnd.git
synced 2026-07-18 08:48:06 -04:00
Rename EXTERNAL_* to EXTERNAL_XIPH_*`
New naming makes sense because adding Wavpack support would not depend on any of the existing Xiph.Org libraries.
This commit is contained in:
@@ -88,8 +88,8 @@ configure : configure.ac
|
||||
|
||||
Build/Stamp/configure : Build/Stamp/install-libs configure
|
||||
PKG_CONFIG_LIBDIR=Build/lib/pkgconfig ./configure
|
||||
sed -i 's#^EXTERNAL_CFLAGS.*#EXTERNAL_CFLAGS = -I$(pwd)/Build/include#' src/Makefile
|
||||
sed -i 's#^EXTERNAL_LIBS.*#EXTERNAL_LIBS = -static $(pwd)/Build/lib/libFLAC.la $(pwd)/Build/lib/libogg.la $(pwd)/Build/lib/libvorbis.la $(pwd)/Build/lib/libvorbisenc.la -dynamic #' src/Makefile
|
||||
sed -i 's#^EXTERNAL_XIPH_CFLAGS.*#EXTERNAL_XIPH_CFLAGS = -I$(pwd)/Build/include#' src/Makefile
|
||||
sed -i 's#^EXTERNAL_XIPH_LIBS.*#EXTERNAL_XIPH_LIBS = -static $(pwd)/Build/lib/libFLAC.la $(pwd)/Build/lib/libogg.la $(pwd)/Build/lib/libvorbis.la $(pwd)/Build/lib/libvorbisenc.la -dynamic #' src/Makefile
|
||||
make clean
|
||||
touch $@
|
||||
|
||||
|
||||
+10
-10
@@ -290,9 +290,9 @@ else
|
||||
#====================================================================================
|
||||
# Check for Ogg, Vorbis and FLAC.
|
||||
|
||||
HAVE_EXTERNAL_LIBS=0
|
||||
EXTERNAL_CFLAGS=""
|
||||
EXTERNAL_LIBS=""
|
||||
HAVE_EXTERNAL_XIPH_LIBS=0
|
||||
EXTERNAL_XIPH_CFLAGS=""
|
||||
EXTERNAL_XIPH_LIBS=""
|
||||
|
||||
# Check for pkg-config outside the if statement.
|
||||
PKG_PROG_PKG_CONFIG
|
||||
@@ -325,11 +325,11 @@ if test -n "$PKG_CONFIG" ; then
|
||||
fi
|
||||
|
||||
if test x$ac_cv_flac$ac_cv_ogg$ac_cv_vorbis$ac_cv_vorbisenc = "xyesyesyesyes" ; then
|
||||
HAVE_EXTERNAL_LIBS=1
|
||||
HAVE_EXTERNAL_XIPH_LIBS=1
|
||||
enable_external_libs=yes
|
||||
|
||||
EXTERNAL_CFLAGS="$FLAC_CFLAGS $OGG_CFLAGS $VORBIS_CFLAGS $VORBISENC_CFLAGS $SPEEX_CFLAGS"
|
||||
EXTERNAL_LIBS="$FLAC_LIBS $OGG_LIBS $VORBIS_LIBS $VORBISENC_LIBS $SPEEX_LIBS "
|
||||
EXTERNAL_XIPH_CFLAGS="$FLAC_CFLAGS $OGG_CFLAGS $VORBIS_CFLAGS $VORBISENC_CFLAGS $SPEEX_CFLAGS"
|
||||
EXTERNAL_XIPH_LIBS="$FLAC_LIBS $OGG_LIBS $VORBIS_LIBS $VORBISENC_LIBS $SPEEX_LIBS "
|
||||
else
|
||||
echo
|
||||
AC_MSG_WARN([[*** One or more of the external libraries (ie libflac, libogg and]])
|
||||
@@ -343,7 +343,7 @@ if test -n "$PKG_CONFIG" ; then
|
||||
fi
|
||||
fi
|
||||
|
||||
AC_DEFINE_UNQUOTED([HAVE_EXTERNAL_LIBS], $HAVE_EXTERNAL_LIBS, [Will be set to 1 if flac, ogg and vorbis are available.])
|
||||
AC_DEFINE_UNQUOTED([HAVE_EXTERNAL_XIPH_LIBS], $HAVE_EXTERNAL_XIPH_LIBS, [Will be set to 1 if flac, ogg and vorbis are available.])
|
||||
|
||||
#====================================================================================
|
||||
# Check for libsqlite3 (only used in regtest).
|
||||
@@ -630,14 +630,14 @@ AC_SUBST(SHARED_VERSION_INFO)
|
||||
AC_SUBST(CLEAN_VERSION)
|
||||
AC_SUBST(WIN_RC_VERSION)
|
||||
|
||||
AC_SUBST(HAVE_EXTERNAL_LIBS)
|
||||
AC_SUBST(HAVE_EXTERNAL_XIPH_LIBS)
|
||||
AC_SUBST(OS_SPECIFIC_CFLAGS)
|
||||
AC_SUBST(OS_SPECIFIC_LINKS)
|
||||
AC_SUBST(ALSA_LIBS)
|
||||
AC_SUBST(SNDIO_LIBS)
|
||||
|
||||
AC_SUBST(EXTERNAL_CFLAGS)
|
||||
AC_SUBST(EXTERNAL_LIBS)
|
||||
AC_SUBST(EXTERNAL_XIPH_CFLAGS)
|
||||
AC_SUBST(EXTERNAL_XIPH_LIBS)
|
||||
AC_SUBST(SRC_BINDIR)
|
||||
AC_SUBST(TEST_BINDIR)
|
||||
|
||||
|
||||
+2
-2
@@ -2,7 +2,7 @@
|
||||
|
||||
AUTOMAKE_OPTIONS = subdir-objects
|
||||
|
||||
AM_CPPFLAGS = $(EXTERNAL_CFLAGS)
|
||||
AM_CPPFLAGS = $(EXTERNAL_XIPH_CFLAGS)
|
||||
|
||||
lib_LTLIBRARIES = libsndfile.la
|
||||
include_HEADERS = sndfile.hh
|
||||
@@ -47,7 +47,7 @@ libsndfile_la_LDFLAGS = -no-undefined -version-info $(SHARED_VERSION_INFO) $(SH
|
||||
libsndfile_la_SOURCES = $(FILESPECIFIC) $(noinst_HEADERS)
|
||||
nodist_libsndfile_la_SOURCES = $(nodist_include_HEADERS)
|
||||
libsndfile_la_LIBADD = GSM610/libgsm.la G72x/libg72x.la ALAC/libalac.la \
|
||||
libcommon.la $(EXTERNAL_LIBS) -lm
|
||||
libcommon.la $(EXTERNAL_XIPH_LIBS) -lm
|
||||
|
||||
libcommon_la_SOURCES = $(COMMON)
|
||||
|
||||
|
||||
+6
-6
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
** Copyright (C) 2001-2014 Erik de Castro Lopo <erikd@mega-nerd.com>
|
||||
** Copyright (C) 2001-2016 Erik de Castro Lopo <erikd@mega-nerd.com>
|
||||
**
|
||||
** This program is free software; you can redistribute it and/or modify
|
||||
** it under the terms of the GNU Lesser General Public License as published by
|
||||
@@ -55,7 +55,7 @@ static SF_FORMAT_INFO const simple_formats [] =
|
||||
"CAF (Apple 16 bit PCM)", "caf"
|
||||
},
|
||||
|
||||
#if HAVE_EXTERNAL_LIBS
|
||||
#if HAVE_EXTERNAL_XIPH_LIBS
|
||||
{ SF_FORMAT_FLAC | SF_FORMAT_PCM_16,
|
||||
"FLAC 16 bit", "flac"
|
||||
},
|
||||
@@ -65,7 +65,7 @@ static SF_FORMAT_INFO const simple_formats [] =
|
||||
"OKI Dialogic VOX ADPCM", "vox"
|
||||
},
|
||||
|
||||
#if HAVE_EXTERNAL_LIBS
|
||||
#if HAVE_EXTERNAL_XIPH_LIBS
|
||||
{ SF_FORMAT_OGG | SF_FORMAT_VORBIS,
|
||||
"Ogg Vorbis (Xiph Foundation)", "oga"
|
||||
},
|
||||
@@ -121,7 +121,7 @@ static SF_FORMAT_INFO const major_formats [] =
|
||||
{ SF_FORMAT_AU, "AU (Sun/NeXT)", "au" },
|
||||
{ SF_FORMAT_AVR, "AVR (Audio Visual Research)", "avr" },
|
||||
{ SF_FORMAT_CAF, "CAF (Apple Core Audio File)", "caf" },
|
||||
#if HAVE_EXTERNAL_LIBS
|
||||
#if HAVE_EXTERNAL_XIPH_LIBS
|
||||
{ SF_FORMAT_FLAC, "FLAC (Free Lossless Audio Codec)", "flac" },
|
||||
#endif
|
||||
{ SF_FORMAT_HTK, "HTK (HMM Tool Kit)", "htk" },
|
||||
@@ -129,7 +129,7 @@ static SF_FORMAT_INFO const major_formats [] =
|
||||
{ SF_FORMAT_MAT4, "MAT4 (GNU Octave 2.0 / Matlab 4.2)", "mat" },
|
||||
{ SF_FORMAT_MAT5, "MAT5 (GNU Octave 2.1 / Matlab 5.0)", "mat" },
|
||||
{ SF_FORMAT_MPC2K, "MPC (Akai MPC 2k)", "mpc" },
|
||||
#if HAVE_EXTERNAL_LIBS
|
||||
#if HAVE_EXTERNAL_XIPH_LIBS
|
||||
{ SF_FORMAT_OGG, "OGG (OGG Container format)", "oga" },
|
||||
#endif
|
||||
{ SF_FORMAT_PAF, "PAF (Ensoniq PARIS)", "paf" },
|
||||
@@ -201,7 +201,7 @@ static SF_FORMAT_INFO subtype_formats [] =
|
||||
{ SF_FORMAT_DPCM_16, "16 bit DPCM", NULL },
|
||||
{ SF_FORMAT_DPCM_8, "8 bit DPCM", NULL },
|
||||
|
||||
#if HAVE_EXTERNAL_LIBS
|
||||
#if HAVE_EXTERNAL_XIPH_LIBS
|
||||
{ SF_FORMAT_VORBIS, "Vorbis", NULL },
|
||||
#endif
|
||||
|
||||
|
||||
+2
-2
@@ -29,7 +29,7 @@
|
||||
#include "sndfile.h"
|
||||
#include "common.h"
|
||||
|
||||
#if HAVE_EXTERNAL_LIBS
|
||||
#if HAVE_EXTERNAL_XIPH_LIBS
|
||||
|
||||
#include <FLAC/stream_decoder.h>
|
||||
#include <FLAC/stream_encoder.h>
|
||||
@@ -1369,7 +1369,7 @@ flac_byterate (SF_PRIVATE *psf)
|
||||
} /* flac_byterate */
|
||||
|
||||
|
||||
#else /* HAVE_EXTERNAL_LIBS */
|
||||
#else /* HAVE_EXTERNAL_XIPH_LIBS */
|
||||
|
||||
int
|
||||
flac_open (SF_PRIVATE *psf)
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
** Copyright (C) 2002-2012 Erik de Castro Lopo <erikd@mega-nerd.com>
|
||||
** Copyright (C) 2002-2016 Erik de Castro Lopo <erikd@mega-nerd.com>
|
||||
** Copyright (C) 2007 John ffitch
|
||||
**
|
||||
** This program is free software ; you can redistribute it and/or modify
|
||||
@@ -34,7 +34,7 @@
|
||||
#include "sfendian.h"
|
||||
#include "common.h"
|
||||
|
||||
#if HAVE_EXTERNAL_LIBS
|
||||
#if HAVE_EXTERNAL_XIPH_LIBS
|
||||
|
||||
#include <ogg/ogg.h>
|
||||
|
||||
@@ -241,7 +241,7 @@ ogg_page_classify (SF_PRIVATE * psf, const ogg_page * og)
|
||||
return 0 ;
|
||||
} /* ogg_page_classify */
|
||||
|
||||
#else /* HAVE_EXTERNAL_LIBS */
|
||||
#else /* HAVE_EXTERNAL_XIPH_LIBS */
|
||||
|
||||
int
|
||||
ogg_open (SF_PRIVATE *psf)
|
||||
|
||||
+3
-3
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
** Copyright (C) 2013 Erik de Castro Lopo <erikd@mega-nerd.com>
|
||||
** Copyright (C) 2013-2016 Erik de Castro Lopo <erikd@mega-nerd.com>
|
||||
**
|
||||
** This program is free software ; you can redistribute it and/or modify
|
||||
** it under the terms of the GNU Lesser General Public License as published by
|
||||
@@ -34,7 +34,7 @@
|
||||
#include "sfendian.h"
|
||||
#include "common.h"
|
||||
|
||||
#if (ENABLE_EXPERIMENTAL_CODE && HAVE_EXTERNAL_LIBS)
|
||||
#if (ENABLE_EXPERIMENTAL_CODE && HAVE_EXTERNAL_XIPH_LIBS)
|
||||
|
||||
#include <ogg/ogg.h>
|
||||
|
||||
@@ -137,7 +137,7 @@ ogg_opus_close (SF_PRIVATE * UNUSED (psf))
|
||||
} /* ogg_opus_close */
|
||||
|
||||
|
||||
#else /* ENABLE_EXPERIMENTAL_CODE && HAVE_EXTERNAL_LIBS */
|
||||
#else /* ENABLE_EXPERIMENTAL_CODE && HAVE_EXTERNAL_XIPH_LIBS */
|
||||
|
||||
int
|
||||
ogg_opus_open (SF_PRIVATE *psf)
|
||||
|
||||
+3
-3
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
** Copyright (C) 2008-2012 Erik de Castro Lopo <erikd@mega-nerd.com>
|
||||
** Copyright (C) 2008-2016 Erik de Castro Lopo <erikd@mega-nerd.com>
|
||||
**
|
||||
** This program is free software ; you can redistribute it and/or modify
|
||||
** it under the terms of the GNU Lesser General Public License as published by
|
||||
@@ -34,7 +34,7 @@
|
||||
#include "sfendian.h"
|
||||
#include "common.h"
|
||||
|
||||
#if (ENABLE_EXPERIMENTAL_CODE && HAVE_EXTERNAL_LIBS)
|
||||
#if (ENABLE_EXPERIMENTAL_CODE && HAVE_EXTERNAL_XIPH_LIBS)
|
||||
|
||||
#include <ogg/ogg.h>
|
||||
|
||||
@@ -152,7 +152,7 @@ duration = audio_samples / rate
|
||||
= 3.947
|
||||
*/
|
||||
|
||||
#else /* ENABLE_EXPERIMENTAL_CODE && HAVE_EXTERNAL_LIBS */
|
||||
#else /* ENABLE_EXPERIMENTAL_CODE && HAVE_EXTERNAL_XIPH_LIBS */
|
||||
|
||||
int
|
||||
ogg_pcm_open (SF_PRIVATE *psf)
|
||||
|
||||
+3
-3
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
** Copyright (C) 2008-2012 Erik de Castro Lopo <erikd@mega-nerd.com>
|
||||
** Copyright (C) 2008-2016 Erik de Castro Lopo <erikd@mega-nerd.com>
|
||||
**
|
||||
** This program is free software ; you can redistribute it and/or modify
|
||||
** it under the terms of the GNU Lesser General Public License as published by
|
||||
@@ -34,7 +34,7 @@
|
||||
#include "sfendian.h"
|
||||
#include "common.h"
|
||||
|
||||
#if (ENABLE_EXPERIMENTAL_CODE && HAVE_EXTERNAL_LIBS)
|
||||
#if (ENABLE_EXPERIMENTAL_CODE && HAVE_EXTERNAL_XIPH_LIBS)
|
||||
|
||||
#include <ogg/ogg.h>
|
||||
|
||||
@@ -413,7 +413,7 @@ duration = audio_samples / rate
|
||||
= 3.947
|
||||
*/
|
||||
|
||||
#else /* ENABLE_EXPERIMENTAL_CODE && HAVE_EXTERNAL_LIBS */
|
||||
#else /* ENABLE_EXPERIMENTAL_CODE && HAVE_EXTERNAL_XIPH_LIBS */
|
||||
|
||||
int
|
||||
ogg_speex_open (SF_PRIVATE *psf)
|
||||
|
||||
+2
-2
@@ -68,7 +68,7 @@
|
||||
#include "sfendian.h"
|
||||
#include "common.h"
|
||||
|
||||
#if HAVE_EXTERNAL_LIBS
|
||||
#if HAVE_EXTERNAL_XIPH_LIBS
|
||||
|
||||
#include <ogg/ogg.h>
|
||||
#include <vorbis/codec.h>
|
||||
@@ -1166,7 +1166,7 @@ vorbis_length (SF_PRIVATE *psf)
|
||||
return length ;
|
||||
} /* vorbis_length */
|
||||
|
||||
#else /* HAVE_EXTERNAL_LIBS */
|
||||
#else /* HAVE_EXTERNAL_XIPH_LIBS */
|
||||
|
||||
int
|
||||
ogg_vorbis_open (SF_PRIVATE *psf)
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
** Copyright (C) 2007-2015 Erik de Castro Lopo <erikd@mega-nerd.com>
|
||||
** Copyright (C) 2007-2016 Erik de Castro Lopo <erikd@mega-nerd.com>
|
||||
**
|
||||
** This program is free software; you can redistribute it and/or modify
|
||||
** it under the terms of the GNU General Public License as published by
|
||||
@@ -178,7 +178,7 @@ main (int argc, char *argv [])
|
||||
exit (0) ;
|
||||
} ;
|
||||
|
||||
if (! HAVE_EXTERNAL_LIBS)
|
||||
if (! HAVE_EXTERNAL_XIPH_LIBS)
|
||||
{ puts (" No Ogg/Vorbis tests because Ogg/Vorbis support was not compiled in.") ;
|
||||
return 0 ;
|
||||
} ;
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
** Copyright (C) 2008-2011 Erik de Castro Lopo <erikd@mega-nerd.com>
|
||||
** Copyright (C) 2008-2016 Erik de Castro Lopo <erikd@mega-nerd.com>
|
||||
**
|
||||
** This program is free software ; you can redistribute it and/or modify
|
||||
** it under the terms of the GNU General Public License as published by
|
||||
@@ -59,7 +59,7 @@ major_format_test (void)
|
||||
have_ogg = info.format == SF_FORMAT_OGG ? 1 : have_ogg ;
|
||||
} ;
|
||||
|
||||
if (HAVE_EXTERNAL_LIBS)
|
||||
if (HAVE_EXTERNAL_XIPH_LIBS)
|
||||
{ exit_if_true (have_flac == 0, "\n\nLine %d : FLAC should be available.\n\n", __LINE__) ;
|
||||
exit_if_true (have_ogg == 0, "\n\nLine %d : Ogg/Vorbis should be available.\n\n", __LINE__) ;
|
||||
}
|
||||
@@ -88,7 +88,7 @@ subtype_format_test (void)
|
||||
have_vorbis = info.format == SF_FORMAT_VORBIS ? 1 : have_vorbis ;
|
||||
} ;
|
||||
|
||||
if (HAVE_EXTERNAL_LIBS)
|
||||
if (HAVE_EXTERNAL_XIPH_LIBS)
|
||||
exit_if_true (have_vorbis == 0, "\n\nLine %d : Ogg/Vorbis should be available.\n\n", __LINE__) ;
|
||||
else
|
||||
exit_if_true (have_vorbis, "\n\nLine %d : Ogg/Vorbis should not be available.\n\n", __LINE__) ;
|
||||
@@ -134,7 +134,7 @@ simple_format_test (void)
|
||||
|
||||
} ;
|
||||
|
||||
if (HAVE_EXTERNAL_LIBS)
|
||||
if (HAVE_EXTERNAL_XIPH_LIBS)
|
||||
{ exit_if_true (have_flac == 0, "\n\nLine %d : FLAC should be available.\n\n", __LINE__) ;
|
||||
exit_if_true (have_ogg == 0, "\n\nLine %d : Ogg/Vorbis should be available.\n\n", __LINE__) ;
|
||||
exit_if_true (have_vorbis == 0, "\n\nLine %d : Ogg/Vorbis should be available.\n\n", __LINE__) ;
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
[+ AutoGen5 template c +]
|
||||
/*
|
||||
** Copyright (C) 1999-2015 Erik de Castro Lopo <erikd@mega-nerd.com>
|
||||
** Copyright (C) 1999-2016 Erik de Castro Lopo <erikd@mega-nerd.com>
|
||||
**
|
||||
** This program is free software; you can redistribute it and/or modify
|
||||
** it under the terms of the GNU General Public License as published by
|
||||
@@ -113,7 +113,7 @@ main (int argc, char *argv [])
|
||||
float_scaled_test ("alac_24.caf", allow_exit, SF_FALSE, SF_FORMAT_CAF | SF_FORMAT_ALAC_24, -153.0) ;
|
||||
float_scaled_test ("alac_20.caf", allow_exit, SF_FALSE, SF_FORMAT_CAF | SF_FORMAT_ALAC_20, -125.0) ;
|
||||
|
||||
#if HAVE_EXTERNAL_LIBS
|
||||
#if HAVE_EXTERNAL_XIPH_LIBS
|
||||
float_scaled_test ("flac_8.flac", allow_exit, SF_FALSE, SF_FORMAT_FLAC | SF_FORMAT_PCM_S8, -39.0) ;
|
||||
float_scaled_test ("flac_16.flac", allow_exit, SF_FALSE, SF_FORMAT_FLAC | SF_FORMAT_PCM_16, -87.0) ;
|
||||
float_scaled_test ("flac_24.flac", allow_exit, SF_FALSE, SF_FORMAT_FLAC | SF_FORMAT_PCM_24, -138.0) ;
|
||||
@@ -170,7 +170,7 @@ main (int argc, char *argv [])
|
||||
double_scaled_test ("alac_24.caf", allow_exit, SF_FALSE, SF_FORMAT_CAF | SF_FORMAT_ALAC_24, -153.0) ;
|
||||
double_scaled_test ("alac_32.caf", allow_exit, SF_FALSE, SF_FORMAT_CAF | SF_FORMAT_ALAC_32, -186.0) ;
|
||||
|
||||
#if HAVE_EXTERNAL_LIBS
|
||||
#if HAVE_EXTERNAL_XIPH_LIBS
|
||||
double_scaled_test ("flac_8.flac", allow_exit, SF_FALSE, SF_FORMAT_FLAC | SF_FORMAT_PCM_S8, -39.0) ;
|
||||
double_scaled_test ("flac_16.flac", allow_exit, SF_FALSE, SF_FORMAT_FLAC | SF_FORMAT_PCM_16, -87.0) ;
|
||||
double_scaled_test ("flac_24.flac", allow_exit, SF_FALSE, SF_FORMAT_FLAC | SF_FORMAT_PCM_24, -138.0) ;
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
** Copyright (C) 1999-2014 Erik de Castro Lopo <erikd@mega-nerd.com>
|
||||
** Copyright (C) 1999-2016 Erik de Castro Lopo <erikd@mega-nerd.com>
|
||||
**
|
||||
** This program is free software; you can redistribute it and/or modify
|
||||
** it under the terms of the GNU General Public License as published by
|
||||
@@ -376,7 +376,7 @@ main (int argc, char *argv [])
|
||||
} ;
|
||||
|
||||
if (do_all || strcmp (argv [1], "ogg_vorbis") == 0)
|
||||
{ if (HAVE_EXTERNAL_LIBS)
|
||||
{ if (HAVE_EXTERNAL_XIPH_LIBS)
|
||||
{ /* Don't do lcomp_test_XXX as the errors are too big. */
|
||||
sdlcomp_test_short ("vorbis.oga", SF_FORMAT_OGG | SF_FORMAT_VORBIS, 1, 0.30) ;
|
||||
sdlcomp_test_int ("vorbis.oga", SF_FORMAT_OGG | SF_FORMAT_VORBIS, 1, 0.30) ;
|
||||
|
||||
+2
-2
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
** Copyright (C) 2001-2015 Erik de Castro Lopo <erikd@mega-nerd.com>
|
||||
** Copyright (C) 2001-2016 Erik de Castro Lopo <erikd@mega-nerd.com>
|
||||
**
|
||||
** This program is free software ; you can redistribute it and/or modify
|
||||
** it under the terms of the GNU General Public License as published by
|
||||
@@ -226,7 +226,7 @@ zero_data_test (const char *filename, int format)
|
||||
|
||||
switch (format & SF_FORMAT_TYPEMASK)
|
||||
{ case SF_FORMAT_OGG :
|
||||
if (HAVE_EXTERNAL_LIBS == 0)
|
||||
if (HAVE_EXTERNAL_XIPH_LIBS == 0)
|
||||
return ;
|
||||
break ;
|
||||
default :
|
||||
|
||||
+2
-2
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
** Copyright (C) 2007-2013 Erik de Castro Lopo <erikd@mega-nerd.com>
|
||||
** Copyright (C) 2007-2016 Erik de Castro Lopo <erikd@mega-nerd.com>
|
||||
**
|
||||
** This program is free software; you can redistribute it and/or modify
|
||||
** it under the terms of the GNU General Public License as published by
|
||||
@@ -328,7 +328,7 @@ ogg_stereo_seek_test (const char * filename, int format)
|
||||
int
|
||||
main (void)
|
||||
{
|
||||
if (HAVE_EXTERNAL_LIBS)
|
||||
if (HAVE_EXTERNAL_XIPH_LIBS)
|
||||
{ ogg_short_test () ;
|
||||
ogg_int_test () ;
|
||||
ogg_float_test () ;
|
||||
|
||||
+2
-2
@@ -103,7 +103,7 @@ main (int argc, char *argv [])
|
||||
} ;
|
||||
|
||||
if (do_all || ! strcmp (argv [1], "flac"))
|
||||
{ if (HAVE_EXTERNAL_LIBS)
|
||||
{ if (HAVE_EXTERNAL_XIPH_LIBS)
|
||||
string_start_test ("strings.flac", SF_FORMAT_FLAC) ;
|
||||
else
|
||||
puts (" No FLAC tests because FLAC support was not compiled in.") ;
|
||||
@@ -111,7 +111,7 @@ main (int argc, char *argv [])
|
||||
} ;
|
||||
|
||||
if (do_all || ! strcmp (argv [1], "ogg"))
|
||||
{ if (HAVE_EXTERNAL_LIBS)
|
||||
{ if (HAVE_EXTERNAL_XIPH_LIBS)
|
||||
string_start_test ("vorbis.oga", SF_FORMAT_OGG) ;
|
||||
else
|
||||
puts (" No Ogg/Vorbis tests because Ogg/Vorbis support was not compiled in.") ;
|
||||
|
||||
@@ -366,7 +366,7 @@ main (int argc, char **argv)
|
||||
} ;
|
||||
|
||||
if (do_all || ! strcmp (argv [1], "flac"))
|
||||
{ if (HAVE_EXTERNAL_LIBS)
|
||||
{ if (HAVE_EXTERNAL_XIPH_LIBS)
|
||||
{ pcm_test_char ("char.flac" , SF_FORMAT_FLAC | SF_FORMAT_PCM_S8, SF_TRUE) ;
|
||||
pcm_test_short ("short.flac" , SF_FORMAT_FLAC | SF_FORMAT_PCM_16, SF_TRUE) ;
|
||||
pcm_test_24bit ("24bit.flac" , SF_FORMAT_FLAC | SF_FORMAT_PCM_24, SF_TRUE) ;
|
||||
|
||||
Reference in New Issue
Block a user