Android.Media.AudioRecord Members

The members of Android.Media.AudioRecord are listed below.

See Also: Inherited members from Java.Lang.Object

Public Constructors

Protected Constructors

A constructor used when creating managed representations of JNI objects; called by the runtime.

Public Properties

[read-only]
AudioFormatEncoding. Returns the configured audio data format.
[read-only]
AudioSessionIdint. Returns the audio session ID.
[read-only]
AudioSourceAudioSource. Returns the audio recording source.
[read-only]
ChannelConfigurationChannelIn. Returns the configured channel configuration.
[read-only]
ChannelCountint. Returns the configured number of channels.
[read-only]
NotificationMarkerPositionint. Returns the notification marker position expressed in frames.
[read-only]
PositionNotificationPeriodint. Returns the notification update period expressed in frames.
[read-only]
RecordingStateRecordState. Returns the recording state of the AudioRecord instance.
[read-only]
SampleRateint. Returns the configured audio data sample rate in Hz
[read-only]
StateState. Returns the state of the AudioRecord instance.

Protected Properties

[read-only]
override
ThresholdClassIntPtr. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.
[read-only]
override
ThresholdTypeType. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

Public Methods

static
GetMinBufferSize(int, ChannelIn, Encoding) : int
Returns the minimum buffer size required for the successful creation of an AudioRecord object, in byte units.
Read(Java.Nio.ByteBuffer, int) : int
Reads audio data from the audio hardware for recording into a direct buffer.
Read(byte[], int, int) : int
Reads audio data from the audio hardware for recording into a buffer.
Read(short[], int, int) : int
Reads audio data from the audio hardware for recording into a buffer.
ReadAsync(Java.Nio.ByteBuffer, int) : System.Threading.Tasks.Task<int>
Documentation for this section has not yet been entered.
ReadAsync(byte[], int, int) : System.Threading.Tasks.Task<int>
Documentation for this section has not yet been entered.
ReadAsync(short[], int, int) : System.Threading.Tasks.Task<int>
Documentation for this section has not yet been entered.
Release()
Releases the native AudioRecord resources.
SetNotificationMarkerPosition(int) : RecordStatus
Sets the marker position at which the listener is called, if set with AudioRecord.SetRecordPositionUpdateListener(.IOnRecordPositionUpdateListener) or AudioRecord.SetRecordPositionUpdateListener(.IOnRecordPositionUpdateListener, Android.OS.Handler).
SetPositionNotificationPeriod(int) : RecordStatus
Sets the period at which the listener is called, if set with AudioRecord.SetRecordPositionUpdateListener(.IOnRecordPositionUpdateListener) or AudioRecord.SetRecordPositionUpdateListener(.IOnRecordPositionUpdateListener, Android.OS.Handler).
SetRecordPositionUpdateListener(AudioRecord.IOnRecordPositionUpdateListener)
Sets the listener the AudioRecord notifies when a previously set marker is reached or for each periodic record head position update.
SetRecordPositionUpdateListener(AudioRecord.IOnRecordPositionUpdateListener, Android.OS.Handler)
Sets the listener the AudioRecord notifies when a previously set marker is reached or for each periodic record head position update.
StartRecording()
Starts recording from the AudioRecord instance.
StartRecording(MediaSyncEvent)
Starts recording from the AudioRecord instance when the specified synchronization event occurs on the specified audio session.
Stop()
Stops recording.

Public Events

MarkerReachedDocumentation for this section has not yet been entered.
PeriodicNotificationDocumentation for this section has not yet been entered.