Clarify PlaybackParameters constructor range.

PiperOrigin-RevId: 476937845
This commit is contained in:
samrobinson 2022-09-26 17:51:43 +00:00 committed by Marc Baechinger
parent 9b1909e563
commit 8589397ffe

View file

@ -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);
}