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