public static class AudioRenderer.SpeedPara.Builder extends Object
AudioRenderer.SpeedPara objects.SystemCapability.Multimedia#AUDIO| 构造器 | 说明 |
|---|---|
Builder() |
Default constructor used to create a
Builder instance. |
| 限定符和类型 | 方法 | 说明 |
|---|---|---|
AudioRenderer.SpeedPara |
build() |
Creates a
SpeedPara instance with the specified playback speed and pitch. |
AudioRenderer.SpeedPara.Builder |
pitch(float pitch) |
Sets the playback pitch of the audio stream.
|
AudioRenderer.SpeedPara.Builder |
speed(float speed) |
Sets the playback speed of the audio stream.
|
public AudioRenderer.SpeedPara.Builder speed(float speed)
speed - Indicates the playback speed to set.Builder instance.public AudioRenderer.SpeedPara.Builder pitch(float pitch)
pitch - Indicates the playback pitch to set.Builder instance.public AudioRenderer.SpeedPara build()
SpeedPara instance with the specified playback speed and pitch.SpeedPara instance.