IT. Expert System.

Android Reference

AutomaticGainControl


android.media.audiofx

Class AutomaticGainControl



  • public class AutomaticGainControl
    extends AudioEffect
    Automatic Gain Control (AGC).

    Automatic Gain Control (AGC) is an audio pre-processing which automatically normalizes the output of the captured signal by boosting or lowering input from the microphone to match a preset level so that the output signal level is virtually constant. AGC can be used by applications where the input signal dynamic range is not important but where a constant strong capture level is desired.

    An application creates a AutomaticGainControl object to instantiate and control an AGC engine in the audio framework.

    To attach the AutomaticGainControl to a particular AudioRecord, specify the audio session ID of this AudioRecord when creating the AutomaticGainControl. The audio session is retrieved by calling AudioRecord.getAudioSessionId() on the AudioRecord instance.

    On some devices, an AGC can be inserted by default in the capture path by the platform according to the MediaRecorder.AudioSource used. The application should call AutomaticGainControl.getEnable() after creating the AGC to check the default AGC activation state on a particular AudioRecord session.

    See AudioEffect class for more details on controlling audio effects.

    • Method Detail

      • isAvailable

        public static boolean isAvailable()
        Checks if the device implements automatic gain control.
        Returns:
        true if the device implements automatic gain control, false otherwise.
      • create

        public static AutomaticGainControl create(int audioSession)
        Creates an AutomaticGainControl and attaches it to the AudioRecord on the audio session specified.
        Parameters:
        audioSession - system wide unique audio session identifier. The AutomaticGainControl will be applied to the AudioRecord with the same audio session.
        Returns:
        AutomaticGainControl created or null if the device does not implement AGC.


Content

Android Reference

Java basics

Java Enterprise Edition (EE)

Java Standard Edition (SE)

SQL

HTML

PHP

CSS

Java Script

MYSQL

JQUERY

VBS

REGEX

C

C++

C#

Design patterns

RFC (standard status)

RFC (proposed standard status)

RFC (draft standard status)

RFC (informational status)

RFC (experimental status)

RFC (best current practice status)

RFC (historic status)

RFC (unknown status)

IT dictionary

License.
All information of this service is derived from the free sources and is provided solely in the form of quotations. This service provides information and interfaces solely for the familiarization (not ownership) and under the "as is" condition.
Copyright 2016 © ELTASK.COM. All rights reserved.
Site is optimized for mobile devices.
Downloads: 204 / 158851113. Delta: 0.03454 с