rpms/audacity/devel audacity-1.3.10-resample.patch, NONE, 1.1 audacity.spec, 1.88, 1.89

Michael Schwendt mschwendt at fedoraproject.org
Mon Dec 28 00:27:57 UTC 2009


Author: mschwendt

Update of /cvs/pkgs/rpms/audacity/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv14006

Modified Files:
	audacity.spec 
Added Files:
	audacity-1.3.10-resample.patch 
Log Message:
* Mon Dec 28 2009 Michael Schwendt <mschwendt at fedoraproject.org> - 1.3.10-0.2.beta
- Patch resampling call to not set end_of_input flag for all sample buffers.


audacity-1.3.10-resample.patch:
 AudioIO.cpp |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- NEW FILE audacity-1.3.10-resample.patch ---
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);


Index: audacity.spec
===================================================================
RCS file: /cvs/pkgs/rpms/audacity/devel/audacity.spec,v
retrieving revision 1.88
retrieving revision 1.89
diff -u -p -r1.88 -r1.89
--- audacity.spec	4 Dec 2009 20:53:01 -0000	1.88
+++ audacity.spec	28 Dec 2009 00:27:57 -0000	1.89
@@ -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-defaul
 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 <mschwendt at fedoraproject.org> - 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 <mschwendt at fedoraproject.org> - 1.3.10-0.1.beta
 - Upgrade to 1.3.10-beta.
 




More information about the scm-commits mailing list