Android.Media.AudioRecord.GetMinBufferSize Method
Returns the minimum buffer size required for the successful creation of an AudioRecord object, in byte units.

Syntax

[Android.Runtime.Register("getMinBufferSize", "(III)I", "")]
public static int GetMinBufferSize (int sampleRateInHz, [Android.Runtime.GeneratedEnum] ChannelIn channelConfig, [Android.Runtime.GeneratedEnum] Encoding audioFormat)

See Also

AudioRecord(AudioSource, System.Int32, System.Int32, System.Int32, System.Int32)

Parameters

sampleRateInHz
the sample rate expressed in Hertz.
channelConfig
describes the configuration of the audio channels. See AudioFormat.CHANNEL_IN_MONO and AudioFormat.CHANNEL_IN_STEREO
audioFormat
the format in which the audio data is represented. See AudioFormat.ENCODING_PCM_16BIT.

Returns

Documentation for this section has not yet been entered.

Remarks

Returns the minimum buffer size required for the successful creation of an AudioRecord object, in byte units. Note that this size doesn't guarantee a smooth recording under load, and higher values should be chosen according to the expected frequency at which the AudioRecord instance will be polled for new data. See AudioRecord(AudioSource, System.Int32, System.Int32, System.Int32, System.Int32) for more information on valid configuration values.

[Android Documentation]

Requirements

Namespace: Android.Media
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 3