Condividi tramite


MediaRecorder.SetAudioEncodingBitRate(Int32) Method

Definition

Sets the audio encoding bit rate for recording.

[Android.Runtime.Register("setAudioEncodingBitRate", "(I)V", "GetSetAudioEncodingBitRate_IHandler")]
public virtual void SetAudioEncodingBitRate (int bitRate);
[<Android.Runtime.Register("setAudioEncodingBitRate", "(I)V", "GetSetAudioEncodingBitRate_IHandler")>]
abstract member SetAudioEncodingBitRate : int -> unit
override this.SetAudioEncodingBitRate : int -> unit

Parameters

bitRate
Int32

the audio encoding bit rate in bits per second.

Attributes

Remarks

Sets the audio encoding bit rate for recording. Call this method before prepare(). Prepare() may perform additional checks on the parameter to make sure whether the specified bit rate is applicable, and sometimes the passed bitRate will be clipped internally to ensure the audio recording can proceed smoothly based on the capabilities of the platform.

Java documentation for android.media.MediaRecorder.setAudioEncodingBitRate(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