diff --git a/audacity-1.3.10-resample.patch b/audacity-1.3.10-resample.patch new file mode 100644 index 0000000..a766066 --- /dev/null +++ b/audacity-1.3.10-resample.patch @@ -0,0 +1,16 @@ +This changes the "end_of_input" parameter from True to False, +because if setting it to True for all buffers, resampling stops early +(reproducible with libsamplerate 0.1.7). + +diff -Nur audacity-src-1.3.10-orig/src/AudioIO.cpp audacity-src-1.3.10/src/AudioIO.cpp +--- audacity-src-1.3.10-orig/src/AudioIO.cpp 2009-12-01 20:32:08.000000000 +0100 ++++ audacity-src-1.3.10/src/AudioIO.cpp 2009-12-28 00:50:11.906619016 +0100 +@@ -2253,7 +2253,7 @@ + samplePtr temp2 = NewSamples(size, floatSample); + mCaptureBuffers[i]->Get(temp1, floatSample, avail); + +- size = mResample[i]->Process(mFactor, (float *)temp1, avail, true, ++ size = mResample[i]->Process(mFactor, (float *)temp1, avail, false, + &size, (float *)temp2, size); + mCaptureTracks[i]-> Append(temp2, floatSample, size, 1, + &appendLog); diff --git a/audacity.spec b/audacity.spec index f7e490c..241ee65 100644 --- a/audacity.spec +++ b/audacity.spec @@ -5,7 +5,7 @@ Name: audacity Version: 1.3.10 -Release: 0.1.beta%{?dist} +Release: 0.2.beta%{?dist} Summary: Multitrack audio editor Group: Applications/Multimedia License: GPLv2 @@ -19,6 +19,7 @@ Patch1: audacity-1.3.7-libmp3lame-default.patch Patch2: audacity-1.3.9-libdir.patch Patch6: audacity-1.3.7-vamp-1.3.patch Patch7: audacity-1.3.9-getmaxpeak.patch +Patch8: audacity-1.3.10-resample.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: alsa-lib-devel @@ -71,6 +72,7 @@ grep -q -s __RPM_LIB * -R && exit 1 %patch6 -p1 -b .vamp-1.3 %endif %patch7 -p1 -b .getmaxpeak +%patch8 -p1 -b .resample # Substitute occurences of "libmp3lame.so" with "libmp3lame.so.0". for i in locale/*.po src/export/ExportMP3.cpp @@ -146,6 +148,9 @@ update-desktop-database &> /dev/null || : %changelog +* Mon Dec 28 2009 Michael Schwendt - 1.3.10-0.2.beta +- Patch resampling call to not set end_of_input flag for all sample buffers. + * Fri Dec 4 2009 Michael Schwendt - 1.3.10-0.1.beta - Upgrade to 1.3.10-beta.