AudioManager.GetSupportedMixerAttributes(AudioDeviceInfo) Method

Definition

Returns the AudioMixerAttributes that can be used to set as preferred mixer attributes via #setPreferredMixerAttributes( AudioAttributes, AudioDeviceInfo, AudioMixerAttributes).

[Android.Runtime.Register("getSupportedMixerAttributes", "(Landroid/media/AudioDeviceInfo;)Ljava/util/List;", "GetGetSupportedMixerAttributes_Landroid_media_AudioDeviceInfo_Handler", ApiSince=34)]
public virtual System.Collections.Generic.IList<Android.Media.AudioMixerAttributes> GetSupportedMixerAttributes (Android.Media.AudioDeviceInfo device);
[<Android.Runtime.Register("getSupportedMixerAttributes", "(Landroid/media/AudioDeviceInfo;)Ljava/util/List;", "GetGetSupportedMixerAttributes_Landroid_media_AudioDeviceInfo_Handler", ApiSince=34)>]
abstract member GetSupportedMixerAttributes : Android.Media.AudioDeviceInfo -> System.Collections.Generic.IList<Android.Media.AudioMixerAttributes>
override this.GetSupportedMixerAttributes : Android.Media.AudioDeviceInfo -> System.Collections.Generic.IList<Android.Media.AudioMixerAttributes>

Parameters

device
AudioDeviceInfo

the device to query

Returns

a list of AudioMixerAttributes that can be used as preferred mixer attributes for the given device.

Attributes

Remarks

Returns the AudioMixerAttributes that can be used to set as preferred mixer attributes via #setPreferredMixerAttributes( AudioAttributes, AudioDeviceInfo, AudioMixerAttributes).

Note that only USB devices are guaranteed to expose configurable mixer attributes. An empty list may be returned for all other types of devices as they may not allow dynamic configuration.

Java documentation for android.media.AudioManager.getSupportedMixerAttributes(android.media.AudioDeviceInfo).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to