Compartilhar via


MicrophoneInfo Class

Definition

Class providing information on a microphone.

[Android.Runtime.Register("android/media/MicrophoneInfo", ApiSince=28, DoNotGenerateAcw=true)]
public sealed class MicrophoneInfo : Java.Lang.Object
[<Android.Runtime.Register("android/media/MicrophoneInfo", ApiSince=28, DoNotGenerateAcw=true)>]
type MicrophoneInfo = class
    inherit Object
Inheritance
MicrophoneInfo
Attributes

Remarks

Class providing information on a microphone. It indicates the location and orientation of the microphone on the device as well as useful information like frequency response and sensitivity. It can be used by applications implementing special pre processing effects like noise suppression of beam forming that need to know about precise microphone characteristics in order to adapt their algorithms.

Java documentation for android.media.MicrophoneInfo.

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.

Fields

ChannelMappingDirect
Obsolete.

The channel contains raw audio from this microphone.

ChannelMappingProcessed
Obsolete.

The channel contains processed audio from this microphone and possibly another microphone.

DirectionalityBiDirectional
Obsolete.

Microphone directionality type: bi-directional.

DirectionalityCardioid
Obsolete.

Microphone directionality type: cardioid.

DirectionalityHyperCardioid
Obsolete.

Microphone directionality type: hyper cardioid.

DirectionalityOmni
Obsolete.

Microphone directionality type: omni.

DirectionalitySuperCardioid
Obsolete.

Microphone directionality type: super cardioid.

DirectionalityUnknown
Obsolete.

Unknown microphone directionality.

GroupUnknown

Value used for when the group of the microphone is unknown.

IndexInTheGroupUnknown

Value used for when the index in the group of the microphone is unknown.

LocationMainbody
Obsolete.

A microphone that locate on main body of the device.

LocationMainbodyMovable
Obsolete.

A microphone that locate on a movable main body of the device.

LocationPeripheral
Obsolete.

A microphone that locate on a peripheral.

LocationUnknown
Obsolete.

A microphone that the location is unknown.

SensitivityUnknown

Value used for when the sensitivity of the microphone is unknown.

SplUnknown

Value used for when the SPL of the microphone is unknown.

Properties

Address

Returns The "address" string of the microphone that corresponds to the address returned by AudioDeviceInfo#getAddress()

ChannelMapping

Returns a android.util.Pair list for channel mapping, which indicating how this microphone is used by each channels or a capture stream.

Class

Returns the runtime class of this Object.

(Inherited from Object)
Description

Returns alphanumeric code that uniquely identifies the device.

Directionality

Returns the directionality of microphone.

FrequencyResponse

Returns a android.util.Pair list of frequency responses.

Group

Returns A device group id that can be used to group together microphones on the same peripheral, attachments or logical groups.

Handle

The handle to the underlying Android instance.

(Inherited from Object)
Id

Returns The system unique device ID that corresponds to the id returned by AudioDeviceInfo#getId().

IndexInTheGroup

Returns unique index for device within its group.

JniIdentityHashCode (Inherited from Object)
JniPeerMembers
Location

Returns the location of the microphone.

MaxSpl

Returns the level in dB of the maximum SPL supported by the device at 1000Hz.

MinSpl

Returns the level in dB of the minimum SPL that can be registered by the device at 1000Hz.

Orientation

Returns A Coordinate3F object that represents the orientation of microphone.

OrientationUnknown

Value used for when the orientation of the microphone is unknown.

PeerReference (Inherited from Object)
Position

Returns A Coordinate3F object that represents the geometric location of microphone in meters.

PositionUnknown

Value used for when the position of the microphone is unknown.

Sensitivity

Returns the level in dBFS produced by a 1000Hz tone at 94 dB SPL.

ThresholdClass

This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

(Inherited from Object)
ThresholdType

This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

(Inherited from Object)
Type

Returns the device type identifier of the microphone (e.

Methods

Clone()

Creates and returns a copy of this object.

(Inherited from Object)
Dispose() (Inherited from Object)
Dispose(Boolean) (Inherited from Object)
Equals(Object)

Indicates whether some other object is "equal to" this one.

(Inherited from Object)
GetHashCode()

Returns a hash code value for the object.

(Inherited from Object)
JavaFinalize()

Called by the garbage collector on an object when garbage collection determines that there are no more references to the object.

(Inherited from Object)
Notify()

Wakes up a single thread that is waiting on this object's monitor.

(Inherited from Object)
NotifyAll()

Wakes up all threads that are waiting on this object's monitor.

(Inherited from Object)
SetHandle(IntPtr, JniHandleOwnership)

Sets the Handle property.

(Inherited from Object)
ToArray<T>() (Inherited from Object)
ToString()

Returns a string representation of the object.

(Inherited from Object)
UnregisterFromRuntime() (Inherited from Object)
Wait()

Causes the current thread to wait until it is awakened, typically by being <em>notified</em> or <em>interrupted</em>.

(Inherited from Object)
Wait(Int64, Int32)

Causes the current thread to wait until it is awakened, typically by being <em>notified</em> or <em>interrupted</em>, or until a certain amount of real time has elapsed.

(Inherited from Object)
Wait(Int64)

Causes the current thread to wait until it is awakened, typically by being <em>notified</em> or <em>interrupted</em>, or until a certain amount of real time has elapsed.

(Inherited from Object)

Explicit Interface Implementations

IJavaPeerable.Disposed() (Inherited from Object)
IJavaPeerable.DisposeUnlessReferenced() (Inherited from Object)
IJavaPeerable.Finalized() (Inherited from Object)
IJavaPeerable.JniManagedPeerState (Inherited from Object)
IJavaPeerable.SetJniIdentityHashCode(Int32) (Inherited from Object)
IJavaPeerable.SetJniManagedPeerState(JniManagedPeerStates) (Inherited from Object)
IJavaPeerable.SetPeerReference(JniObjectReference) (Inherited from Object)

Extension Methods

JavaCast<TResult>(IJavaObject)

Performs an Android runtime-checked type conversion.

JavaCast<TResult>(IJavaObject)
GetJniTypeName(IJavaPeerable)

Applies to