Commit 76b7f764 by christosts Committed by kim-vde

Allow speed adjustments close to 1f in SonicAudioProcessor

Issue: #4904
PiperOrigin-RevId: 336841791
parent 09598580
...@@ -33,7 +33,7 @@ public final class SonicAudioProcessor implements AudioProcessor { ...@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment