VolumeShaper.Configuration.Builder.SetCurve(Single[], Single[]) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Sets the volume curve.
[Android.Runtime.Register("setCurve", "([F[F)Landroid/media/VolumeShaper$Configuration$Builder;", "", ApiSince=26)]
public Android.Media.VolumeShaper.Configuration.Builder SetCurve(float[] times, float[] volumes);
[<Android.Runtime.Register("setCurve", "([F[F)Landroid/media/VolumeShaper$Configuration$Builder;", "", ApiSince=26)>]
member this.SetCurve : single[] * single[] -> Android.Media.VolumeShaper.Configuration.Builder
Parameters
- times
- Single[]
an array of float values representing the time line of the volume curve. This value cannot be null.
- volumes
- Single[]
an array of float values representing the amplitude of the volume curve. This value cannot be null.
Returns
the same Builder instance. This value cannot be null.
- Attributes
Remarks
Sets the volume curve. The volume curve is represented by a set of control points given by two float arrays of equal length, one representing the time (x) coordinates and one corresponding to the volume (y) coordinates. The length must be at least 2 and no greater than VolumeShaper.Configuration.getMaximumCurvePoints(). The volume curve is normalized as follows: time (x) coordinates should be monotonically increasing, from 0.f to 1.f; volume (y) coordinates must be within 0.f to 1.f. The time scale is set by setDuration(long).
Android reference for android.media.VolumeShaper.Configuration.Builder.setCurve.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.