Commit 8589397f by samrobinson Committed by Marc Baechinger

Clarify PlaybackParameters constructor range.

PiperOrigin-RevId: 476937845
parent 9b1909e5
......@@ -49,7 +49,7 @@ public final class PlaybackParameters implements Bundleable {
*
* @param speed The factor by which playback will be sped up. Must be greater than zero.
*/
public PlaybackParameters(float speed) {
public PlaybackParameters(@FloatRange(from = 0, fromInclusive = false) float speed) {
this(speed, /* pitch= */ 1f);
}
......
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