AudioAttributes 【中文翻译小组】

A class to encapsulate a collection of attributes describing information about an audio stream.

封装描述音频流信息的属性集合的类。

AudioAttributes supersede the notion of stream types

AudioAttributes取代流类型的概念

(see for instance AudioManager#STREAM_MUSIC or AudioManager#STREAM_ALARM)

(例如,请参见AudioManager流音乐或AudioManager流警报),

for defining the behavior of audio playback.

用于定义音频播放的行为。

 

Attributes allow an application to specify more information than is conveyed in a stream type by allowing the application to define:

属性允许应用程序通过定义以下内容来指定比流类型中传输的信息更多的信息:

 

usage: "why" you are playing a sound, what is this sound used for. This is achieved with the "usage" information. Examples of usage are USAGE_MEDIA and USAGE_ALARM. These two examples are the closest to stream types, but more detailed use cases are available. Usage information is more expressive than a stream ty

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值