public final class AudioAttributes extends Object
AudioTrack
.
To set the audio attributes, create an instance using the AudioAttributes.Builder
and either pass it to
SimpleExoPlayer.setAudioAttributes(AudioAttributes)
or
send a message of type C.MSG_SET_AUDIO_ATTRIBUTES
to the audio renderers.
This class is based on AudioAttributes
, but can be used on all supported
API versions.
Modifier and Type | Class and Description |
---|---|
static class |
AudioAttributes.Builder
Builder for
AudioAttributes . |
Modifier and Type | Field and Description |
---|---|
int |
contentType |
static AudioAttributes |
DEFAULT |
int |
flags |
int |
usage |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
AudioAttributes |
getAudioAttributesV21() |
int |
hashCode() |
public static final AudioAttributes DEFAULT
@C.AudioContentType public final int contentType
@C.AudioFlags public final int flags
@C.AudioUsage public final int usage