setCurve
定曲线
Added in API level 26
添加到API级别26中
public VolumeShaper.Configuration.Builder setCurve (float[] times,
public VolumeShaper.Configuration.Builder设置曲线(浮点[]次,
float[] volumes)
浮动[]卷)
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.
一个表示时间(x)坐标,另一个表示体积(y)坐标。
The length must be at least 2 and no greater than VolumeShaper.Configuration#getMaximumCurvePoints().
长度必须至少为2且不大于VolumeShaper.Configuration.getMaximumCurvePoints()。,目前知道最大值是16
The volume curve is normalized as follows:
体积曲线的规格化如下:
time (x) coordinates should be monot