Android.Media.AudioRecord Class
The AudioRecord class manages the audio resources for Java applications to record audio from the audio input hardware of the platform.

See Also: AudioRecord Members

Syntax

[Android.Runtime.Register("android/media/AudioRecord", DoNotGenerateAcw=true)]
public class AudioRecord : Java.Lang.Object

Remarks

The AudioRecord class manages the audio resources for Java applications to record audio from the audio input hardware of the platform. This is achieved by "pulling" (reading) the data from the AudioRecord object. The application is responsible for polling the AudioRecord object in time using one of the following three methods: AudioRecord.Read(Byte[], System.Int32, System.Int32), AudioRecord.Read(Int16[], System.Int32, System.Int32) or AudioRecord.Read(Java.Nio.ByteBuffer, System.Int32). The choice of which method to use will be based on the audio data storage format that is the most convenient for the user of AudioRecord.

Upon creation, an AudioRecord object initializes its associated audio buffer that it will fill with the new audio data. The size of this buffer, specified during the construction, determines how long an AudioRecord can record before "over-running" data that has not been read yet. Data should be read from the audio hardware in chunks of sizes inferior to the total recording buffer size.

[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