setCurve 【中文翻译小组】

setCurve方法用于在API级别26及以上设定音量曲线,该曲线通过一对等长的浮点数组定义,分别表示时间(x)和音量(y)坐标。曲线长度最小2,最大不超过16,时间坐标从0.f递增到1.f,音量坐标限定在0.f到1.f之间。setDuration方法设定时间比例。参数times和volumes分别为时间线和音量振幅的浮点数组,两者均不可为空。
摘要由CSDN通过智能技术生成

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

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值