DynamicsProcessing.Config.Builder

public static final class DynamicsProcessing.Config.Builder
extends Object

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


Summary

Public constructors

DynamicsProcessing.Config.Builder(int variant, int channelCount, boolean preEqInUse, int preEqBandCount, boolean mbcInUse, int mbcBandCount, boolean postEqInUse, int postEqBandCount, boolean limiterInUse)

Public methods

DynamicsProcessing.Config build()
DynamicsProcessing.Config.Builder setAllChannelsTo(DynamicsProcessing.Channel channel)
DynamicsProcessing.Config.Builder setChannelTo(int channelIndex, DynamicsProcessing.Channel channel)
DynamicsProcessing.Config.Builder setInputGainAllChannelsTo(float inputGain)
DynamicsProcessing.Config.Builder setInputGainByChannelIndex(int channelIndex, float inputGain)
DynamicsProcessing.Config.Builder setLimiterAllChannelsTo(DynamicsProcessing.Limiter limiter)
DynamicsProcessing.Config.Builder setLimiterByChannelIndex(int channelIndex, DynamicsProcessing.Limiter limiter)
DynamicsProcessing.Config.Builder setMbcAllChannelsTo(DynamicsProcessing.Mbc mbc)
DynamicsProcessing.Config.Builder setMbcByChannelIndex(int channelIndex, DynamicsProcessing.Mbc mbc)
DynamicsProcessing.Config.Builder setPostEqAllChannelsTo(DynamicsProcessing.Eq postEq)
DynamicsProcessing.Config.Builder setPostEqByChannelIndex(int channelIndex, DynamicsProcessing.Eq postEq)
DynamicsProcessing.Config.Builder setPreEqAllChannelsTo(DynamicsProcessing.Eq preEq)
DynamicsProcessing.Config.Builder setPreEqByChannelIndex(int channelIndex, DynamicsProcessing.Eq preEq)
DynamicsProcessing.Config.Builder setPreferredFrameDuration(float frameDuration)

Inherited methods

Public constructors

DynamicsProcessing.Config.Builder

added in API level 28
public DynamicsProcessing.Config.Builder (int variant, 
                int channelCount, 
                boolean preEqInUse, 
                int preEqBandCount, 
                boolean mbcInUse, 
                int mbcBandCount, 
                boolean postEqInUse, 
                int postEqBandCount, 
                boolean limiterInUse)

Parameters
variant int

channelCount int

preEqInUse boolean

preEqBandCount int

mbcInUse boolean

mbcBandCount int

postEqInUse boolean

postEqBandCount int

limiterInUse boolean

Public methods

build

added in API level 28
public DynamicsProcessing.Config build ()

Returns
DynamicsProcessing.Config

setAllChannelsTo

added in API level 28
public DynamicsProcessing.Config.Builder setAllChannelsTo (DynamicsProcessing.Channel channel)

Parameters
channel DynamicsProcessing.Channel

Returns
DynamicsProcessing.Config.Builder

setChannelTo

added in API level 28
public DynamicsProcessing.Config.Builder setChannelTo (int channelIndex, 
                DynamicsProcessing.Channel channel)

Parameters
channelIndex int

channel DynamicsProcessing.Channel

Returns
DynamicsProcessing.Config.Builder

setInputGainAllChannelsTo

added in API level 28
public DynamicsProcessing.Config.Builder setInputGainAllChannelsTo (float inputGain)

Parameters
inputGain float

Returns
DynamicsProcessing.Config.Builder

setInputGainByChannelIndex

added in API level 28
public DynamicsProcessing.Config.Builder setInputGainByChannelIndex (int channelIndex, 
                float inputGain)

Parameters
channelIndex int

inputGain float

Returns
DynamicsProcessing.Config.Builder

setLimiterAllChannelsTo

added in API level 28
public DynamicsProcessing.Config.Builder setLimiterAllChannelsTo (DynamicsProcessing.Limiter limiter)

Parameters
limiter DynamicsProcessing.Limiter

Returns
DynamicsProcessing.Config.Builder

setLimiterByChannelIndex

added in API level 28
public DynamicsProcessing.Config.Builder setLimiterByChannelIndex (int channelIndex, 
                DynamicsProcessing.Limiter limiter)

Parameters
channelIndex int

limiter DynamicsProcessing.Limiter

Returns
DynamicsProcessing.Config.Builder

setMbcAllChannelsTo

added in API level 28
public DynamicsProcessing.Config.Builder setMbcAllChannelsTo (DynamicsProcessing.Mbc mbc)

Parameters
mbc DynamicsProcessing.Mbc

Returns
DynamicsProcessing.Config.Builder

setMbcByChannelIndex

added in API level 28
public DynamicsProcessing.Config.Builder setMbcByChannelIndex (int channelIndex, 
                DynamicsProcessing.Mbc mbc)

Parameters
channelIndex int

mbc DynamicsProcessing.Mbc

Returns
DynamicsProcessing.Config.Builder

setPostEqAllChannelsTo

added in API level 28
public DynamicsProcessing.Config.Builder setPostEqAllChannelsTo (DynamicsProcessing.Eq postEq)

Parameters
postEq DynamicsProcessing.Eq

Returns
DynamicsProcessing.Config.Builder

setPostEqByChannelIndex

added in API level 28
public DynamicsProcessing.Config.Builder setPostEqByChannelIndex (int channelIndex, 
                DynamicsProcessing.Eq postEq)

Parameters
channelIndex int

postEq DynamicsProcessing.Eq

Returns
DynamicsProcessing.Config.Builder

setPreEqAllChannelsTo

added in API level 28
public DynamicsProcessing.Config.Builder setPreEqAllChannelsTo (DynamicsProcessing.Eq preEq)

Parameters
preEq DynamicsProcessing.Eq

Returns
DynamicsProcessing.Config.Builder

setPreEqByChannelIndex

added in API level 28
public DynamicsProcessing.Config.Builder setPreEqByChannelIndex (int channelIndex, 
                DynamicsProcessing.Eq preEq)

Parameters
channelIndex int

preEq DynamicsProcessing.Eq

Returns
DynamicsProcessing.Config.Builder

setPreferredFrameDuration

added in API level 28
public DynamicsProcessing.Config.Builder setPreferredFrameDuration (float frameDuration)

Parameters
frameDuration float

Returns
DynamicsProcessing.Config.Builder