Expand documentation for getLatency
This commit is contained in:
@@ -447,13 +447,21 @@ public:
|
|||||||
double getPitchScale() const;
|
double getPitchScale() const;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Return the processing latency of the stretcher. This is the
|
* Return the output delay or latency of the stretcher. This is
|
||||||
* number of audio samples that one would have to discard at the
|
* the number of audio samples that one would have to discard at
|
||||||
* start of the output in order to ensure that the resulting audio
|
* the start of the output in order to ensure that the resulting
|
||||||
* aligned with the input audio at the start. In Offline mode,
|
* audio aligns with the input audio at the start. In Offline
|
||||||
* latency is automatically adjusted for and the result is zero.
|
* mode, this delay is automatically adjusted for and the result
|
||||||
* In RealTime mode, the latency may depend on the time and pitch
|
* is zero. In RealTime mode, the delay may depend on the time
|
||||||
* ratio and other options.
|
* and pitch ratio and other options.
|
||||||
|
*
|
||||||
|
* Note that this is not the same thing as the number of samples
|
||||||
|
* needed at input to cause a block of processing to happen (also
|
||||||
|
* sometimes referred to as latency). That value is reported by
|
||||||
|
* getSamplesRequired() and will typically be higher than the
|
||||||
|
* output delay at the start of processing and lower thereafter.
|
||||||
|
*
|
||||||
|
* @see getSamplesRequired
|
||||||
*/
|
*/
|
||||||
size_t getLatency() const;
|
size_t getLatency() const;
|
||||||
|
|
||||||
@@ -570,6 +578,8 @@ public:
|
|||||||
* individual samples. (For example, one second of stereo audio
|
* individual samples. (For example, one second of stereo audio
|
||||||
* sampled at 44100Hz yields a value of 44100 sample frames, not
|
* sampled at 44100Hz yields a value of 44100 sample frames, not
|
||||||
* 88200.) This rule applies throughout the Rubber Band API.
|
* 88200.) This rule applies throughout the Rubber Band API.
|
||||||
|
*
|
||||||
|
* @see getLatency
|
||||||
*/
|
*/
|
||||||
size_t getSamplesRequired() const;
|
size_t getSamplesRequired() const;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user