次の方法で共有


AudioTrack.MaxVolume Property

Definition

Returns the maximum gain value, which is greater than or equal to 1.

public static float MaxVolume { [Android.Runtime.Register("getMaxVolume", "()F", "")] get; }
[<get: Android.Runtime.Register("getMaxVolume", "()F", "")>]
static member MaxVolume : single

Property Value

the maximum value, which is greater than or equal to 1.0.

Attributes

Remarks

Returns the maximum gain value, which is greater than or equal to 1.0. Gain values greater than the maximum will be clamped to the maximum.

The word "volume" in the API name is historical; this is actually a gain. expressed as a linear multiplier on sample values, where a maximum value of 1.0 corresponds to a gain of 0 dB (sample values left unmodified).

Java documentation for android.media.AudioTrack.getMaxVolume().

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