Re: [Audacity-devel] Fw: SoX resampling
A free multi-track audio editor and recorder
Brought to you by:
aosiniao
From: Gale A. <ga...@au...> - 2012-11-11 23:56:37
|
| From Rob Sykes <aq...@ya...> | Sat, 10 Nov 2012 07:48:50 +0000 (GMT) | Subject: [Audacity-devel] Fw: SoX resampling > ----- Original Message ----- > > > From: Vaughan Johnson <va...@au...> > > > >>> However, the build then fails later with missing methods: > >>> > >>> QualityPrefs.cpp:(.text+0x84d): undefined reference to > > `ConstRateResample::GetNumMethods()' > >>> etc. > > > > Same problem. If you're not building libsoxr, USE_LIBSOXR needs to be > > #undef-ed. > > > Sorry folks, my mistake, after a clean build it was okay. So just this minor change is needed to support deselecting libsoxr: > > Index: m4/audacity_checklib_libsoxr.m4 > =================================================================== > --- m4/audacity_checklib_libsoxr.m4 (revision 12038) > +++ m4/audacity_checklib_libsoxr.m4 (working copy) > @@ -11,7 +11,7 @@ > LIBSOXR_ARGUMENT=$withval, > LIBSOXR_ARGUMENT="unspecified") > > - if true ; then > + if false ; then > AC_DEFINE(USE_LIBSOXR, 1, > [Define if libsoxr support should be enabled]) > fi > Index: configure > =================================================================== > --- configure (revision 12038) > +++ configure (working copy) > @@ -5978,7 +5978,7 @@ > fi > > > - if true ; then > + if false ; then > > $as_echo "#define USE_LIBSOXR 1" >>confdefs.h Just to confirm, with that change (committed in r12040) I could do sudo make clean, svn up, ./configure then build on Ubuntu 12.04 32-bit with libsoxr and libresample disabled, but libsamplerate enabled, without running ./autogen.sh before ./configure. About Audacity's "Build Information" looks correct, in that libsamplerate is "enabled", and libsoxr is "disabled". However Quality Preferences says "Resampling disabled" for both "High-quality" and "Real-time". So, if I play or export a tone where the track and project rate don't match, the result is just rapid "ticks". If I choose "dmix" as playback device, which only supports 48000 Hz on my machine, playback is garbage with anything other than a 48000 Hz file. Sorry if I am missing something, but I thought we were allowing libsamplerate only to be used (as in the past)? Or did I still need ./autogen.sh or made some other mistake? Gale |