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 VARIANT_FAVOR_FREQUENCY_RESOLUTION and 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

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

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

DynamicsProcessing.Limiter getLimiterByChannelIndex (int channelIndex)

Parameters
channelIndex int

Returns
DynamicsProcessing.Limiter

getMbcBandByChannelIndex

DynamicsProcessing.MbcBand getMbcBandByChannelIndex (int channelIndex, 
                int band)

Parameters
channelIndex int

band int

Returns
DynamicsProcessing.MbcBand

getMbcBandCount

int getMbcBandCount ()

Gets number of bands configured for the Mbc stage.

Returns
int number of bands configured for the Mbc stage.

getMbcByChannelIndex

DynamicsProcessing.Mbc getMbcByChannelIndex (int channelIndex)

Parameters
channelIndex int

Returns
DynamicsProcessing.Mbc

getPostEqBandByChannelIndex

DynamicsProcessing.EqBand getPostEqBandByChannelIndex (int channelIndex, 
                int band)

Parameters
channelIndex int

band int

Returns
DynamicsProcessing.EqBand

getPostEqBandCount

int getPostEqBandCount ()

Gets number of bands configured for the PostEq stage.

Returns
int number of bands configured for the PostEq stage.

getPostEqByChannelIndex

DynamicsProcessing.Eq getPostEqByChannelIndex (int channelIndex)

Parameters
channelIndex int

Returns
DynamicsProcessing.Eq

getPreEqBandByChannelIndex

DynamicsProcessing.EqBand getPreEqBandByChannelIndex (int channelIndex, 
                int band)

Parameters
channelIndex int

band int

Returns
DynamicsProcessing.EqBand

getPreEqBandCount

int getPreEqBandCount ()

Gets number of bands configured for the PreEq stage.

Returns
int number of bands configured for the PreEq stage.

getPreEqByChannelIndex

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

float getPreferredFrameDuration ()

Gets preferred frame duration in milliseconds (ms).

Returns
float preferred frame duration in milliseconds (ms)

getVariant

int getVariant ()

Gets variant for effect engine See VARIANT_FAVOR_FREQUENCY_RESOLUTION and VARIANT_FAVOR_TIME_RESOLUTION.

Returns
int variant of effect engine

isLimiterInUse

boolean isLimiterInUse ()

Gets if Limiter stage is in use

Returns
boolean true if Limiter stage is in use;

isMbcInUse

boolean isMbcInUse ()

Gets if Mbc stage is in use

Returns
boolean true if Mbc stage is in use;

isPostEqInUse

boolean isPostEqInUse ()

Gets if PostEq stage is in use

Returns
boolean true if PostEq stage is in use;

isPreEqInUse

boolean isPreEqInUse ()

Gets if preEq stage is in use

Returns
boolean true if preEq stage is in use;

setAllChannelsTo

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

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

void setInputGainAllChannelsTo (float inputGain)

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

Parameters
inputGain float: desired value in decibels (dB)

setInputGainByChannelIndex

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

void setLimiterAllChannelsTo (DynamicsProcessing.Limiter limiter)

Parameters
limiter DynamicsProcessing.Limiter

setLimiterByChannelIndex

void setLimiterByChannelIndex (int channelIndex, 
                DynamicsProcessing.Limiter limiter)

Parameters
channelIndex int

limiter DynamicsProcessing.Limiter

setMbcAllChannelsTo

void setMbcAllChannelsTo (DynamicsProcessing.Mbc mbc)

Parameters
mbc DynamicsProcessing.Mbc

setMbcBandAllChannelsTo

void setMbcBandAllChannelsTo (int band, 
                DynamicsProcessing.MbcBand mbcBand)

Parameters
band int

mbcBand DynamicsProcessing.MbcBand

setMbcBandByChannelIndex

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

Parameters
channelIndex int

band int

mbcBand DynamicsProcessing.MbcBand

setMbcByChannelIndex

void setMbcByChannelIndex (int channelIndex, 
                DynamicsProcessing.Mbc mbc)

Parameters
channelIndex int

mbc DynamicsProcessing.Mbc

setPostEqAllChannelsTo

void setPostEqAllChannelsTo (DynamicsProcessing.Eq postEq)

Parameters
postEq DynamicsProcessing.Eq

setPostEqBandAllChannelsTo

void setPostEqBandAllChannelsTo (int band, 
                DynamicsProcessing.EqBand postEqBand)

Parameters
band int

postEqBand DynamicsProcessing.EqBand

setPostEqBandByChannelIndex

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

Parameters
channelIndex int

band int

postEqBand DynamicsProcessing.EqBand

setPostEqByChannelIndex

void setPostEqByChannelIndex (int channelIndex, 
                DynamicsProcessing.Eq postEq)

Parameters
channelIndex int

postEq DynamicsProcessing.Eq

setPreEqAllChannelsTo

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

void setPreEqBandAllChannelsTo (int band, 
                DynamicsProcessing.EqBand preEqBand)

Parameters
band int

preEqBand DynamicsProcessing.EqBand

setPreEqBandByChannelIndex

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

Parameters
channelIndex int

band int

preEqBand DynamicsProcessing.EqBand

setPreEqByChannelIndex

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

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.