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

Added in API level 28
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

Added in API level 28
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

Added in API level 28
public DynamicsProcessing.Limiter getLimiterByChannelIndex (int channelIndex)

Parameters
channelIndex int

Returns
DynamicsProcessing.Limiter

getMbcBandByChannelIndex

Added in API level 28
public DynamicsProcessing.MbcBand getMbcBandByChannelIndex (int channelIndex, 
                int band)

Parameters
channelIndex int

band int

Returns
DynamicsProcessing.MbcBand

getMbcBandCount

Added in API level 28
public int getMbcBandCount ()

Gets number of bands configured for the Mbc stage.

Returns
int number of bands configured for the Mbc stage.

getMbcByChannelIndex

Added in API level 28
public DynamicsProcessing.Mbc getMbcByChannelIndex (int channelIndex)

Parameters
channelIndex int

Returns
DynamicsProcessing.Mbc

getPostEqBandByChannelIndex

Added in API level 28
public DynamicsProcessing.EqBand getPostEqBandByChannelIndex (int channelIndex, 
                int band)

Parameters
channelIndex int

band int

Returns
DynamicsProcessing.EqBand

getPostEqBandCount

Added in API level 28
public int getPostEqBandCount ()

Gets number of bands configured for the PostEq stage.

Returns
int number of bands configured for the PostEq stage.

getPostEqByChannelIndex

Added in API level 28
public DynamicsProcessing.Eq getPostEqByChannelIndex (int channelIndex)

Parameters
channelIndex int

Returns
DynamicsProcessing.Eq

getPreEqBandByChannelIndex

Added in API level 28
public DynamicsProcessing.EqBand getPreEqBandByChannelIndex (int channelIndex, 
                int band)

Parameters
channelIndex int

band int

Returns
DynamicsProcessing.EqBand

getPreEqBandCount

Added in API level 28
public int getPreEqBandCount ()

Gets number of bands configured for the PreEq stage.

Returns
int number of bands configured for the PreEq stage.

getPreEqByChannelIndex

Added in API level 28
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

Added in API level 28
public float getPreferredFrameDuration ()

Gets preferred frame duration in milliseconds (ms).

Returns
float preferred frame duration in milliseconds (ms)

getVariant

Added in API level 28
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

Added in API level 28
public boolean isLimiterInUse ()

Gets if Limiter stage is in use

Returns
boolean true if Limiter stage is in use;

isMbcInUse

Added in API level 28
public boolean isMbcInUse ()

Gets if Mbc stage is in use

Returns
boolean true if Mbc stage is in use;

isPostEqInUse

Added in API level 28
public boolean isPostEqInUse ()

Gets if PostEq stage is in use

Returns
boolean true if PostEq stage is in use;

isPreEqInUse

Added in API level 28
public boolean isPreEqInUse ()

Gets if preEq stage is in use

Returns
boolean true if preEq stage is in use;

setAllChannelsTo

Added in API level 28
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

Added in API level 28
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

Added in API level 28
public void setInputGainAllChannelsTo (float inputGain)

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

Parameters
inputGain float: desired value in decibels (dB)

setInputGainByChannelIndex

Added in API level 28
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

Added in API level 28
public void setLimiterAllChannelsTo (DynamicsProcessing.Limiter limiter)

Parameters
limiter DynamicsProcessing.Limiter

setLimiterByChannelIndex

Added in API level 28
public void setLimiterByChannelIndex (int channelIndex, 
                DynamicsProcessing.Limiter limiter)

Parameters
channelIndex int

limiter DynamicsProcessing.Limiter

setMbcAllChannelsTo

Added in API level 28
public void setMbcAllChannelsTo (DynamicsProcessing.Mbc mbc)

Parameters
mbc DynamicsProcessing.Mbc

setMbcBandAllChannelsTo

Added in API level 28
public void setMbcBandAllChannelsTo (int band, 
                DynamicsProcessing.MbcBand mbcBand)

Parameters
band int

mbcBand DynamicsProcessing.MbcBand

setMbcBandByChannelIndex

Added in API level 28
public void setMbcBandByChannelIndex (int channelIndex, 
                int band, 
                DynamicsProcessing.MbcBand mbcBand)

Parameters
channelIndex int

band int

mbcBand DynamicsProcessing.MbcBand

setMbcByChannelIndex

Added in API level 28
public void setMbcByChannelIndex (int channelIndex, 
                DynamicsProcessing.Mbc mbc)

Parameters
channelIndex int

mbc DynamicsProcessing.Mbc

setPostEqAllChannelsTo

Added in API level 28
public void setPostEqAllChannelsTo (DynamicsProcessing.Eq postEq)

Parameters
postEq DynamicsProcessing.Eq

setPostEqBandAllChannelsTo

Added in API level 28
public void setPostEqBandAllChannelsTo (int band, 
                DynamicsProcessing.EqBand postEqBand)

Parameters
band int

postEqBand DynamicsProcessing.EqBand

setPostEqBandByChannelIndex

Added in API level 28
public void setPostEqBandByChannelIndex (int channelIndex, 
                int band, 
                DynamicsProcessing.EqBand postEqBand)

Parameters
channelIndex int

band int

postEqBand DynamicsProcessing.EqBand

setPostEqByChannelIndex

Added in API level 28
public void setPostEqByChannelIndex (int channelIndex, 
                DynamicsProcessing.Eq postEq)

Parameters
channelIndex int

postEq DynamicsProcessing.Eq

setPreEqAllChannelsTo

Added in API level 28
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

Added in API level 28
public void setPreEqBandAllChannelsTo (int band, 
                DynamicsProcessing.EqBand preEqBand)

Parameters
band int

preEqBand DynamicsProcessing.EqBand

setPreEqBandByChannelIndex

Added in API level 28
public void setPreEqBandByChannelIndex (int channelIndex, 
                int band, 
                DynamicsProcessing.EqBand preEqBand)

Parameters
channelIndex int

band int

preEqBand DynamicsProcessing.EqBand

setPreEqByChannelIndex

Added in API level 28
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

Added in API level 28
public String toString ()

Returns a string representation of the object.

Returns
String a string representation of the object.