public final class PlaybackParameters
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static PlaybackParameters |
DEFAULT
The default playback parameters: real-time playback with no pitch modification.
|
float |
pitch
The factor by which the audio pitch will be scaled.
|
float |
speed
The factor by which playback will be sped up.
|
| Constructor and Description |
|---|
PlaybackParameters(float speed,
float pitch)
Creates new playback parameters.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
long |
getMediaTimeUsForPlayoutTimeMs(long timeMs)
Returns the media time in microseconds that will elapse in
timeMs milliseconds of
wallclock time. |
int |
hashCode() |
public static final PlaybackParameters DEFAULT
public final float speed
public final float pitch
public PlaybackParameters(float speed,
float pitch)
speed - The factor by which playback will be sped up. Must be greater than zero.pitch - The factor by which the audio pitch will be scaled. Must be greater than zero.public long getMediaTimeUsForPlayoutTimeMs(long timeMs)
timeMs milliseconds of
wallclock time.timeMs - The time to scale, in milliseconds.public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object