Android.Media.AudioAttributes Class
A class to encapsulate a collection of attributes describing information about an audio stream.

See Also: AudioAttributes Members

Syntax

[Android.Runtime.Register("android/media/AudioAttributes", DoNotGenerateAcw=true)]
public sealed class AudioAttributes : Java.Lang.Object, Android.OS.IParcelable, IDisposable

Remarks

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

AudioAttributes supersede the notion of stream types (see for instance AudioManager.STREAM_MUSIC or AudioManager.STREAM_ALARM) 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:

AudioAttributes are used for example in one of the Android.Media.AudioTrack constructors (see AudioTrack(AudioAttributes, Android.Media.AudioFormat, Android.Media.AudioFormat, Android.Media.AudioFormat, Android.Media.AudioFormat)), to configure a Android.Media.MediaPlayer (see MediaPlayer.SetAudioAttributes(AudioAttributes) or a Android.App.Notification (see Android.App.Notification.AudioAttributes). An AudioAttributes instance is built through its builder, NoType:android/media/AudioAttributes$Builder;Href=../../../reference/android/media/AudioAttributes.Builder.html.

[Android Documentation]

Requirements

Namespace: Android.Media
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0