Freigeben über


AudioTrack.SetDualMonoMode(Int32) Method

Definition

Sets the Dual Mono mode presentation on the output device.

[Android.Runtime.Register("setDualMonoMode", "(I)Z", "GetSetDualMonoMode_IHandler", ApiSince=30)]
public virtual bool SetDualMonoMode (int dualMonoMode);
[<Android.Runtime.Register("setDualMonoMode", "(I)Z", "GetSetDualMonoMode_IHandler", ApiSince=30)>]
abstract member SetDualMonoMode : int -> bool
override this.SetDualMonoMode : int -> bool

Parameters

dualMonoMode
Int32

one of #DUAL_MONO_MODE_OFF, #DUAL_MONO_MODE_LR, #DUAL_MONO_MODE_LL, #DUAL_MONO_MODE_RR.

Returns

true on success, false on failure if the output device does not support Dual Mono mode.

Attributes

Remarks

Sets the Dual Mono mode presentation on the output device.

The Dual Mono mode is generally applied to stereo audio streams where the left and right channels come from separate sources.

For compressed audio, where the decoding is done in hardware, Dual Mono presentation needs to be performed by the hardware output device as the PCM audio is not available to the framework.

Java documentation for android.media.AudioTrack.setDualMonoMode(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.

Applies to