Class AudioAttributes

  • All Implemented Interfaces:
    Bundleable

    public final class AudioAttributes
    extends Object
    implements Bundleable
    Attributes for audio playback, which configure the underlying platform AudioTrack.

    To set the audio attributes, create an instance using the AudioAttributes.Builder and either pass it to the player or send a message of type Renderer#MSG_SET_AUDIO_ATTRIBUTES to the audio renderers.

    This class is based on AudioAttributes, but can be used on all supported API versions.