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 2010-01-09 16:34:35.705647887 +0100
@@ -2252,8 +2252,11 @@
samplePtr temp1 = NewSamples(avail, floatSample);
samplePtr temp2 = NewSamples(size, floatSample);
mCaptureBuffers[i]->Get(temp1, floatSample, avail);
-
- size = mResample[i]->Process(mFactor, (float *)temp1, avail, true,
+ /* we are re-sampling on the fly. The last resampling call
+ * must flush any samples left in the rate conversion buffer
+ * so that they get recorded
+ */
+ size = mResample[i]->Process(mFactor, (float *)temp1, avail, !IsStreamActive(),
&size, (float *)temp2, size);
mCaptureTracks[i]-> Append(temp2, floatSample, size, 1,
&appendLog);