@@ -313,7 +313,7 @@ pub trait Source: Iterator<Item = Sample> {
313
313
/// A recommended attack_time of `4.0` seconds provides a sweet spot for most applications.
314
314
///
315
315
/// `release_time`:
316
- /// **TL;DR**: Response time for volume decreases. Shorter = faster gain reduction. **Recommended: `0.005 ` seconds**.
316
+ /// **TL;DR**: Response time for volume decreases. Shorter = faster gain reduction. **Recommended: `0.0 ` seconds**.
317
317
///
318
318
/// The time (in seconds) for the AGC to respond to input level decreases.
319
319
/// This parameter controls how quickly the gain is reduced when the signal level drops.
@@ -323,8 +323,8 @@ pub trait Source: Iterator<Item = Sample> {
323
323
/// However, if the release_time is too high, the AGC may not be able to lower the gain
324
324
/// quickly enough, potentially leading to clipping and distorted sound before it can adjust.
325
325
/// Finding the right balance is crucial for maintaining natural-sounding dynamics and
326
- /// preventing distortion. A recommended release_time of `0.005 ` seconds often works well for
327
- /// general use, providing a good balance between responsiveness and smooth transitions .
326
+ /// preventing distortion. A recommended release_time of `0.0 ` seconds works well for
327
+ /// general use, allowing the AGC to decrease the gain immediately with no delay, ensuring there is no clipping .
328
328
///
329
329
/// `absolute_max_gain`:
330
330
/// **TL;DR**: Maximum allowed gain. Prevents over-amplification. **Recommended: `5.0`**.
@@ -349,7 +349,7 @@ pub trait Source: Iterator<Item = Sample> {
349
349
/// let source = SineWave::new(444.0); // An example.
350
350
/// let (sink, output) = Sink::new(); // An example.
351
351
///
352
- /// let agc_source = source.automatic_gain_control(1.0, 4.0, 0.005 , 5.0);
352
+ /// let agc_source = source.automatic_gain_control(1.0, 4.0, 0.0 , 5.0);
353
353
///
354
354
/// // Add the AGC-controlled source to the sink
355
355
/// sink.append(agc_source);
0 commit comments