Android.Media.AudioRecord.Read Method
Reads audio data from the audio hardware for recording into a direct buffer.

Syntax

[Android.Runtime.Register("read", "(Ljava/nio/ByteBuffer;I)I", "GetRead_Ljava_nio_ByteBuffer_IHandler")]
public virtual int Read (Java.Nio.ByteBuffer audioBuffer, int sizeInBytes)

Parameters

audioBuffer
the direct buffer to which the recorded audio data is written.
sizeInBytes
the number of requested bytes.

Returns

Documentation for this section has not yet been entered.

Remarks

Reads audio data from the audio hardware for recording into a direct buffer. If this buffer is not a direct buffer, this method will always return 0. Note that the value returned by Java.Nio.Buffer.Position on this buffer is unchanged after a call to this method.

[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