Virtualizer.CanVirtualize(ChannelIn, VirtualizationMode) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Checks if the combination of a channel mask and virtualization mode is supported by this virtualizer.
[Android.Runtime.Register("canVirtualize", "(II)Z", "GetCanVirtualize_IIHandler")]
public virtual bool CanVirtualize (Android.Media.ChannelIn inputChannelMask, Android.Media.Audiofx.VirtualizationMode virtualizationMode);
[<Android.Runtime.Register("canVirtualize", "(II)Z", "GetCanVirtualize_IIHandler")>]
abstract member CanVirtualize : Android.Media.ChannelIn * Android.Media.Audiofx.VirtualizationMode -> bool
override this.CanVirtualize : Android.Media.ChannelIn * Android.Media.Audiofx.VirtualizationMode -> bool
Parameters
- inputChannelMask
- ChannelIn
the channel mask of the content to virtualize.
- virtualizationMode
- VirtualizationMode
the mode for which virtualization processing is to be performed,
one of #VIRTUALIZATION_MODE_BINAURAL
, #VIRTUALIZATION_MODE_TRANSAURAL
.
Returns
true if the combination of channel mask and virtualization mode is supported, false
otherwise.
<br>An indication that a certain channel mask is not supported doesn't necessarily mean
you cannot play content with that channel mask, it more likely implies the content will
be downmixed before being virtualized. For instance a virtualizer that only supports a
mask such as AudioFormat#CHANNEL_OUT_STEREO
will still be able to process content with a mask of
AudioFormat#CHANNEL_OUT_5POINT1
, but will downmix the content to stereo first, and
then will virtualize, as opposed to virtualizing each channel individually.
- Attributes
Exceptions
Remarks
Checks if the combination of a channel mask and virtualization mode is supported by this virtualizer. Some virtualizer implementations may only support binaural processing (i.e. only support headphone output, see #VIRTUALIZATION_MODE_BINAURAL
), some may support transaural processing (i.e. for speaker output, see #VIRTUALIZATION_MODE_TRANSAURAL
) for the built-in speakers. Use this method to query the virtualizer implementation capabilities.
Java documentation for android.media.audiofx.Virtualizer.canVirtualize(int, int)
.
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.