Allow speed adjustments close to 1f in SonicAudioProcessor

Issue: #4904
PiperOrigin-RevId: 336841791
This commit is contained in:
christosts 2020-10-13 11:05:20 +01:00 committed by kim-vde
parent 09598580f2
commit 76b7f76437

View File

@ -33,7 +33,7 @@ public final class SonicAudioProcessor implements AudioProcessor {
public static final int SAMPLE_RATE_NO_CHANGE = -1; public static final int SAMPLE_RATE_NO_CHANGE = -1;
/** The threshold below which the difference between two pitch/speed factors is negligible. */ /** The threshold below which the difference between two pitch/speed factors is negligible. */
private static final float CLOSE_THRESHOLD = 0.01f; private static final float CLOSE_THRESHOLD = 0.0001f;
/** /**
* The minimum number of output bytes at which the speedup is calculated using the input/output * The minimum number of output bytes at which the speedup is calculated using the input/output