# Print output for @column tags ?> DynamicsProcessing.Config - Android SDK | Android Developers

Most visited

Recently visited

DynamicsProcessing.Config

public static final class DynamicsProcessing.Config
extends Object

java.lang.Object
   ↳ android.media.audiofx.DynamicsProcessing.Config


Class for Config object, used by DynamicsProcessing to configure and update the audio effect. use Builder to instantiate objects of this type.

Summary

Nested classes

class DynamicsProcessing.Config.Builder

 

Public methods

DynamicsProcessing.Channel getChannelByChannelIndex(int channelIndex)

Gets the Channel configuration object by using the channel index

float getInputGainByChannelIndex(int channelIndex)

Gets inputGain value in decibels (dB) for channel indicated by channelIndex

DynamicsProcessing.Limiter getLimiterByChannelIndex(int channelIndex)
DynamicsProcessing.MbcBand getMbcBandByChannelIndex(int channelIndex, int band)
int getMbcBandCount()

Gets number of bands configured for the Mbc stage.

DynamicsProcessing.Mbc getMbcByChannelIndex(int channelIndex)
DynamicsProcessing.EqBand getPostEqBandByChannelIndex(int channelIndex, int band)
int getPostEqBandCount()

Gets number of bands configured for the PostEq stage.

DynamicsProcessing.Eq getPostEqByChannelIndex(int channelIndex)
DynamicsProcessing.EqBand getPreEqBandByChannelIndex(int channelIndex, int band)
int getPreEqBandCount()

Gets number of bands configured for the PreEq stage.

DynamicsProcessing.Eq getPreEqByChannelIndex(int channelIndex)

Gets PreEq stage from channel indicated by channelIndex

float getPreferredFrameDuration()

Gets preferred frame duration in milliseconds (ms).

int getVariant()

Gets variant for effect engine See DynamicsProcessing.VARIANT_FAVOR_FREQUENCY_RESOLUTION and DynamicsProcessing.VARIANT_FAVOR_TIME_RESOLUTION.

boolean isLimiterInUse()

Gets if Limiter stage is in use

boolean isMbcInUse()

Gets if Mbc stage is in use

boolean isPostEqInUse()

Gets if PostEq stage is in use

boolean isPreEqInUse()

Gets if preEq stage is in use

void setAllChannelsTo(DynamicsProcessing.Channel channel)

Sets ALL channels to the chosen Channel object.

void setChannelTo(int channelIndex, DynamicsProcessing.Channel channel)

Sets the chosen Channel object in the selected channelIndex Note that all the stages should have the same number of bands than the existing Channel object.

void setInputGainAllChannelsTo(float inputGain)

Sets the inputGain value in decibels (dB) for ALL channels

void setInputGainByChannelIndex(int channelIndex, float inputGain)

Sets the inputGain value in decibels (dB) for the channel indicated by channelIndex.

void setLimiterAllChannelsTo(DynamicsProcessing.Limiter limiter)
void setLimiterByChannelIndex(int channelIndex, DynamicsProcessing.Limiter limiter)
void setMbcAllChannelsTo(DynamicsProcessing.Mbc mbc)
void setMbcBandAllChannelsTo(int band, DynamicsProcessing.MbcBand mbcBand)
void setMbcBandByChannelIndex(int channelIndex, int band, DynamicsProcessing.MbcBand mbcBand)
void setMbcByChannelIndex(int channelIndex, DynamicsProcessing.Mbc mbc)
void setPostEqAllChannelsTo(DynamicsProcessing.Eq postEq)
void setPostEqBandAllChannelsTo(int band, DynamicsProcessing.EqBand postEqBand)
void setPostEqBandByChannelIndex(int channelIndex, int band, DynamicsProcessing.EqBand postEqBand)
void setPostEqByChannelIndex(int channelIndex, DynamicsProcessing.Eq postEq)
void setPreEqAllChannelsTo(DynamicsProcessing.Eq preEq)

Sets the PreEq stage configuration for ALL channels.

void setPreEqBandAllChannelsTo(int band, DynamicsProcessing.EqBand preEqBand)
void setPreEqBandByChannelIndex(int channelIndex, int band, DynamicsProcessing.EqBand preEqBand)
void setPreEqByChannelIndex(int channelIndex, DynamicsProcessing.Eq preEq)

Sets the PreEq stage configuration for the channel indicated by channelIndex.

String toString()

Returns a string representation of the object.

Inherited methods

Public methods

getChannelByChannelIndex

public DynamicsProcessing.Channel getChannelByChannelIndex (int channelIndex)

Gets the Channel configuration object by using the channel index

Parameters
channelIndex int: of desired Channel object

Returns
DynamicsProcessing.Channel Channel configuration object

getInputGainByChannelIndex

public float getInputGainByChannelIndex (int channelIndex)

Gets inputGain value in decibels (dB) for channel indicated by channelIndex

Parameters
channelIndex int: index of channel of interest

Returns
float inputGain value in decibels (dB). 0 dB means no change.

getLimiterByChannelIndex

public DynamicsProcessing.Limiter getLimiterByChannelIndex (int channelIndex)

Parameters
channelIndex int

Returns
DynamicsProcessing.Limiter

getMbcBandByChannelIndex

public DynamicsProcessing.MbcBand getMbcBandByChannelIndex (int channelIndex, 
                int band)

Parameters
channelIndex int

band int

Returns
DynamicsProcessing.MbcBand

getMbcBandCount

public int getMbcBandCount ()

Gets number of bands configured for the Mbc stage.

Returns
int number of bands configured for the Mbc stage.

getMbcByChannelIndex

public DynamicsProcessing.Mbc getMbcByChannelIndex (int channelIndex)

Parameters
channelIndex int

Returns
DynamicsProcessing.Mbc

getPostEqBandByChannelIndex

public DynamicsProcessing.EqBand getPostEqBandByChannelIndex (int channelIndex, 
                int band)

Parameters
channelIndex int

band int

Returns
DynamicsProcessing.EqBand

getPostEqBandCount

public int getPostEqBandCount ()

Gets number of bands configured for the PostEq stage.

Returns
int number of bands configured for the PostEq stage.

getPostEqByChannelIndex

public DynamicsProcessing.Eq getPostEqByChannelIndex (int channelIndex)

Parameters
channelIndex int

Returns
DynamicsProcessing.Eq

getPreEqBandByChannelIndex

public DynamicsProcessing.EqBand getPreEqBandByChannelIndex (int channelIndex, 
                int band)

Parameters
channelIndex int

band int

Returns
DynamicsProcessing.EqBand

getPreEqBandCount

public int getPreEqBandCount ()

Gets number of bands configured for the PreEq stage.

Returns
int number of bands configured for the PreEq stage.

getPreEqByChannelIndex

public DynamicsProcessing.Eq getPreEqByChannelIndex (int channelIndex)

Gets PreEq stage from channel indicated by channelIndex

Parameters
channelIndex int: index of channel of interest

Returns
DynamicsProcessing.Eq PreEq stage configuration object

getPreferredFrameDuration

public float getPreferredFrameDuration ()

Gets preferred frame duration in milliseconds (ms).

Returns
float preferred frame duration in milliseconds (ms)

getVariant

public int getVariant ()

Gets variant for effect engine See DynamicsProcessing.VARIANT_FAVOR_FREQUENCY_RESOLUTION and DynamicsProcessing.VARIANT_FAVOR_TIME_RESOLUTION.

Returns
int variant of effect engine

isLimiterInUse

public boolean isLimiterInUse ()

Gets if Limiter stage is in use

Returns
boolean true if Limiter stage is in use;

isMbcInUse

public boolean isMbcInUse ()

Gets if Mbc stage is in use

Returns
boolean true if Mbc stage is in use;

isPostEqInUse

public boolean isPostEqInUse ()

Gets if PostEq stage is in use

Returns
boolean true if PostEq stage is in use;

isPreEqInUse

public boolean isPreEqInUse ()

Gets if preEq stage is in use

Returns
boolean true if preEq stage is in use;

setAllChannelsTo

public void setAllChannelsTo (DynamicsProcessing.Channel channel)

Sets ALL channels to the chosen Channel object. Note that all the stages should have the same number of bands than the existing ones.

Parameters
channel DynamicsProcessing.Channel: Channel configuration object to be set.

setChannelTo

public void setChannelTo (int channelIndex, 
                DynamicsProcessing.Channel channel)

Sets the chosen Channel object in the selected channelIndex Note that all the stages should have the same number of bands than the existing Channel object.

Parameters
channelIndex int: index of channel to be replaced

channel DynamicsProcessing.Channel: Channel configuration object to be set

setInputGainAllChannelsTo

public void setInputGainAllChannelsTo (float inputGain)

Sets the inputGain value in decibels (dB) for ALL channels

Parameters
inputGain float: desired value in decibels (dB)

setInputGainByChannelIndex

public void setInputGainByChannelIndex (int channelIndex, 
                float inputGain)

Sets the inputGain value in decibels (dB) for the channel indicated by channelIndex.

Parameters
channelIndex int: index of channel of interest

inputGain float: desired value in decibels (dB).

setLimiterAllChannelsTo

public void setLimiterAllChannelsTo (DynamicsProcessing.Limiter limiter)

Parameters
limiter DynamicsProcessing.Limiter

setLimiterByChannelIndex

public void setLimiterByChannelIndex (int channelIndex, 
                DynamicsProcessing.Limiter limiter)

Parameters
channelIndex int

limiter DynamicsProcessing.Limiter

setMbcAllChannelsTo

public void setMbcAllChannelsTo (DynamicsProcessing.Mbc mbc)

Parameters
mbc DynamicsProcessing.Mbc

setMbcBandAllChannelsTo

public void setMbcBandAllChannelsTo (int band, 
                DynamicsProcessing.MbcBand mbcBand)

Parameters
band int

mbcBand DynamicsProcessing.MbcBand

setMbcBandByChannelIndex

public void setMbcBandByChannelIndex (int channelIndex, 
                int band, 
                DynamicsProcessing.MbcBand mbcBand)

Parameters
channelIndex int

band int

mbcBand DynamicsProcessing.MbcBand

setMbcByChannelIndex

public void setMbcByChannelIndex (int channelIndex, 
                DynamicsProcessing.Mbc mbc)

Parameters
channelIndex int

mbc DynamicsProcessing.Mbc

setPostEqAllChannelsTo

public void setPostEqAllChannelsTo (DynamicsProcessing.Eq postEq)

Parameters
postEq DynamicsProcessing.Eq

setPostEqBandAllChannelsTo

public void setPostEqBandAllChannelsTo (int band, 
                DynamicsProcessing.EqBand postEqBand)

Parameters
band int

postEqBand DynamicsProcessing.EqBand

setPostEqBandByChannelIndex

public void setPostEqBandByChannelIndex (int channelIndex, 
                int band, 
                DynamicsProcessing.EqBand postEqBand)

Parameters
channelIndex int

band int

postEqBand DynamicsProcessing.EqBand

setPostEqByChannelIndex

public void setPostEqByChannelIndex (int channelIndex, 
                DynamicsProcessing.Eq postEq)

Parameters
channelIndex int

postEq DynamicsProcessing.Eq

setPreEqAllChannelsTo

public void setPreEqAllChannelsTo (DynamicsProcessing.Eq preEq)

Sets the PreEq stage configuration for ALL channels. Note that new preEq stage must have the same number of bands than original preEq stages.

Parameters
preEq DynamicsProcessing.Eq: desired PreEq configuration to be set

setPreEqBandAllChannelsTo

public void setPreEqBandAllChannelsTo (int band, 
                DynamicsProcessing.EqBand preEqBand)

Parameters
band int

preEqBand DynamicsProcessing.EqBand

setPreEqBandByChannelIndex

public void setPreEqBandByChannelIndex (int channelIndex, 
                int band, 
                DynamicsProcessing.EqBand preEqBand)

Parameters
channelIndex int

band int

preEqBand DynamicsProcessing.EqBand

setPreEqByChannelIndex

public void setPreEqByChannelIndex (int channelIndex, 
                DynamicsProcessing.Eq preEq)

Sets the PreEq stage configuration for the channel indicated by channelIndex. Note that new preEq stage must have the same number of bands than original preEq stage

Parameters
channelIndex int: index of channel to be set

preEq DynamicsProcessing.Eq: desired PreEq configuration to be set

toString

public String toString ()

Returns a string representation of the object. In general, the toString method returns a string that "textually represents" this object. The result should be a concise but informative representation that is easy for a person to read. It is recommended that all subclasses override this method.

The toString method for class Object returns a string consisting of the name of the class of which the object is an instance, the at-sign character `@', and the unsigned hexadecimal representation of the hash code of the object. In other words, this method returns a string equal to the value of:

 getClass().getName() + '@' + Integer.toHexString(hashCode())
 

Returns
String a string representation of the object.