Share via


MediaRecorder.MaxAmplitude Property

Definition

Returns the maximum absolute amplitude that was sampled since the last call to this method.

public virtual int MaxAmplitude { [Android.Runtime.Register("getMaxAmplitude", "()I", "GetGetMaxAmplitudeHandler")] get; }
[<get: Android.Runtime.Register("getMaxAmplitude", "()I", "GetGetMaxAmplitudeHandler")>]
member this.MaxAmplitude : int

Property Value

the maximum absolute amplitude measured since the last call, or 0 when called for the first time

Attributes

Exceptions

if it is called before the audio source has been set.

Remarks

Returns the maximum absolute amplitude that was sampled since the last call to this method. Call this only after the setAudioSource().

Java documentation for android.media.MediaRecorder.getMaxAmplitude().

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