mirror of
https://github.com/samsonjs/media.git
synced 2026-04-04 11:05:47 +00:00
Clarify PlaybackParameters constructor range.
PiperOrigin-RevId: 476937845
This commit is contained in:
parent
9b1909e563
commit
8589397ffe
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue