From 21787621f3fc2c1a304d1ebeef3a43cbab3aa888 Mon Sep 17 00:00:00 2001 From: Paul Licameli Date: Mon, 20 Nov 2017 13:05:15 -0500 Subject: [PATCH] Comment aids reasoning about preconditions for Sequence methods --- src/WaveClip.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/WaveClip.h b/src/WaveClip.h index 3de3d9ea6..35fbd7e28 100644 --- a/src/WaveClip.h +++ b/src/WaveClip.h @@ -204,7 +204,10 @@ public: void ConvertToSampleFormat(sampleFormat format); + // Always gives non-negative answer, not more than sample sequence length + // even if t0 really falls outside that range void TimeToSamplesClip(double t0, sampleCount *s0) const; + int GetRate() const { return mRate; } // Set rate without resampling. This will change the length of the clip