Config
class Config
| kotlin.Any | |
| ↳ | 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 | |
|---|---|
| Public methods | |
|---|---|
| DynamicsProcessing.Channel! | 
            getChannelByChannelIndex(channelIndex: Int)Gets the Channel configuration object by using the channel index  | 
        
| Float | 
            getInputGainByChannelIndex(channelIndex: Int)Gets inputGain value in decibels (dB) for channel indicated by channelIndex  | 
        
| DynamicsProcessing.Limiter! | 
            getLimiterByChannelIndex(channelIndex: Int) | 
        
| DynamicsProcessing.MbcBand! | 
            getMbcBandByChannelIndex(channelIndex: Int, band: Int) | 
        
| Int | 
            
             Gets number of bands configured for the Mbc stage.  | 
        
| DynamicsProcessing.Mbc! | 
            getMbcByChannelIndex(channelIndex: Int) | 
        
| DynamicsProcessing.EqBand! | 
            getPostEqBandByChannelIndex(channelIndex: Int, band: Int) | 
        
| Int | 
            
             Gets number of bands configured for the PostEq stage.  | 
        
| DynamicsProcessing.Eq! | 
            getPostEqByChannelIndex(channelIndex: Int) | 
        
| DynamicsProcessing.EqBand! | 
            getPreEqBandByChannelIndex(channelIndex: Int, band: Int) | 
        
| Int | 
            
             Gets number of bands configured for the PreEq stage.  | 
        
| DynamicsProcessing.Eq! | 
            getPreEqByChannelIndex(channelIndex: Int)Gets PreEq stage from channel indicated by channelIndex  | 
        
| Float | 
            
             Gets preferred frame duration in milliseconds (ms).  | 
        
| Int | 
            
             Gets variant for effect engine See   | 
        
| Boolean | 
            
             Gets if Limiter stage is in use  | 
        
| Boolean | 
            
             Gets if Mbc stage is in use  | 
        
| Boolean | 
            
             Gets if PostEq stage is in use  | 
        
| Boolean | 
            
             Gets if preEq stage is in use  | 
        
| Unit | 
            setAllChannelsTo(channel: DynamicsProcessing.Channel!)Sets ALL channels to the chosen Channel object.  | 
        
| Unit | 
            setChannelTo(channelIndex: Int, channel: DynamicsProcessing.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.  | 
        
| Unit | 
            setInputGainAllChannelsTo(inputGain: Float)Sets the inputGain value in decibels (dB) for ALL channels  | 
        
| Unit | 
            setInputGainByChannelIndex(channelIndex: Int, inputGain: Float)Sets the inputGain value in decibels (dB) for the channel indicated by channelIndex.  | 
        
| Unit | |
| Unit | 
            setLimiterByChannelIndex(channelIndex: Int, limiter: DynamicsProcessing.Limiter!) | 
        
| Unit | |
| Unit | 
            setMbcBandAllChannelsTo(band: Int, mbcBand: DynamicsProcessing.MbcBand!) | 
        
| Unit | 
            setMbcBandByChannelIndex(channelIndex: Int, band: Int, mbcBand: DynamicsProcessing.MbcBand!) | 
        
| Unit | 
            setMbcByChannelIndex(channelIndex: Int, mbc: DynamicsProcessing.Mbc!) | 
        
| Unit | 
            setPostEqAllChannelsTo(postEq: DynamicsProcessing.Eq!) | 
        
| Unit | 
            setPostEqBandAllChannelsTo(band: Int, postEqBand: DynamicsProcessing.EqBand!) | 
        
| Unit | 
            setPostEqBandByChannelIndex(channelIndex: Int, band: Int, postEqBand: DynamicsProcessing.EqBand!) | 
        
| Unit | 
            setPostEqByChannelIndex(channelIndex: Int, postEq: DynamicsProcessing.Eq!) | 
        
| Unit | 
            
             Sets the PreEq stage configuration for ALL channels.  | 
        
| Unit | 
            setPreEqBandAllChannelsTo(band: Int, preEqBand: DynamicsProcessing.EqBand!) | 
        
| Unit | 
            setPreEqBandByChannelIndex(channelIndex: Int, band: Int, preEqBand: DynamicsProcessing.EqBand!) | 
        
| Unit | 
            setPreEqByChannelIndex(channelIndex: Int, preEq: DynamicsProcessing.Eq!)Sets the PreEq stage configuration for the channel indicated by channelIndex.  | 
        
| String | 
            toString() | 
        
Public methods
getChannelByChannelIndex
fun getChannelByChannelIndex(channelIndex: Int): DynamicsProcessing.Channel!
Gets the Channel configuration object by using the channel index
| Parameters | |
|---|---|
channelIndex | 
            Int: of desired Channel object | 
| Return | |
|---|---|
DynamicsProcessing.Channel! | 
            Channel configuration object | 
getInputGainByChannelIndex
fun getInputGainByChannelIndex(channelIndex: Int): Float
Gets inputGain value in decibels (dB) for channel indicated by channelIndex
| Parameters | |
|---|---|
channelIndex | 
            Int: index of channel of interest | 
| Return | |
|---|---|
Float | 
            inputGain value in decibels (dB). 0 dB means no change. | 
getLimiterByChannelIndex
fun getLimiterByChannelIndex(channelIndex: Int): DynamicsProcessing.Limiter!
getMbcBandByChannelIndex
fun getMbcBandByChannelIndex(
channelIndex: Int,
band: Int
): DynamicsProcessing.MbcBand!
getMbcBandCount
fun getMbcBandCount(): Int
Gets number of bands configured for the Mbc stage.
| Return | |
|---|---|
Int | 
            number of bands configured for the Mbc stage. | 
getMbcByChannelIndex
fun getMbcByChannelIndex(channelIndex: Int): DynamicsProcessing.Mbc!
getPostEqBandByChannelIndex
fun getPostEqBandByChannelIndex(
channelIndex: Int,
band: Int
): DynamicsProcessing.EqBand!
getPostEqBandCount
fun getPostEqBandCount(): Int
Gets number of bands configured for the PostEq stage.
| Return | |
|---|---|
Int | 
            number of bands configured for the PostEq stage. | 
getPostEqByChannelIndex
fun getPostEqByChannelIndex(channelIndex: Int): DynamicsProcessing.Eq!
getPreEqBandByChannelIndex
fun getPreEqBandByChannelIndex(
channelIndex: Int,
band: Int
): DynamicsProcessing.EqBand!
getPreEqBandCount
fun getPreEqBandCount(): Int
Gets number of bands configured for the PreEq stage.
| Return | |
|---|---|
Int | 
            number of bands configured for the PreEq stage. | 
getPreEqByChannelIndex
fun getPreEqByChannelIndex(channelIndex: Int): DynamicsProcessing.Eq!
Gets PreEq stage from channel indicated by channelIndex
| Parameters | |
|---|---|
channelIndex | 
            Int: index of channel of interest | 
| Return | |
|---|---|
DynamicsProcessing.Eq! | 
            PreEq stage configuration object | 
getPreferredFrameDuration
fun getPreferredFrameDuration(): Float
Gets preferred frame duration in milliseconds (ms).
| Return | |
|---|---|
Float | 
            preferred frame duration in milliseconds (ms) | 
getVariant
fun getVariant(): Int
Gets variant for effect engine See VARIANT_FAVOR_FREQUENCY_RESOLUTION and VARIANT_FAVOR_TIME_RESOLUTION.
| Return | |
|---|---|
Int | 
            variant of effect engine | 
isLimiterInUse
fun isLimiterInUse(): Boolean
Gets if Limiter stage is in use
| Return | |
|---|---|
Boolean | 
            true if Limiter stage is in use; | 
isMbcInUse
fun isMbcInUse(): Boolean
Gets if Mbc stage is in use
| Return | |
|---|---|
Boolean | 
            true if Mbc stage is in use; | 
isPostEqInUse
fun isPostEqInUse(): Boolean
Gets if PostEq stage is in use
| Return | |
|---|---|
Boolean | 
            true if PostEq stage is in use; | 
isPreEqInUse
fun isPreEqInUse(): Boolean
Gets if preEq stage is in use
| Return | |
|---|---|
Boolean | 
            true if preEq stage is in use; | 
setAllChannelsTo
fun setAllChannelsTo(channel: DynamicsProcessing.Channel!): Unit
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
fun setChannelTo(
channelIndex: Int,
channel: DynamicsProcessing.Channel!
): Unit
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
fun setInputGainAllChannelsTo(inputGain: Float): Unit
Sets the inputGain value in decibels (dB) for ALL channels
| Parameters | |
|---|---|
inputGain | 
            Float: desired value in decibels (dB) | 
setInputGainByChannelIndex
fun setInputGainByChannelIndex(
channelIndex: Int,
inputGain: Float
): Unit
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
fun setLimiterAllChannelsTo(limiter: DynamicsProcessing.Limiter!): Unit
setLimiterByChannelIndex
fun setLimiterByChannelIndex(
channelIndex: Int,
limiter: DynamicsProcessing.Limiter!
): Unit
setMbcAllChannelsTo
fun setMbcAllChannelsTo(mbc: DynamicsProcessing.Mbc!): Unit
setMbcBandAllChannelsTo
fun setMbcBandAllChannelsTo(
band: Int,
mbcBand: DynamicsProcessing.MbcBand!
): Unit
setMbcBandByChannelIndex
fun setMbcBandByChannelIndex(
channelIndex: Int,
band: Int,
mbcBand: DynamicsProcessing.MbcBand!
): Unit
setMbcByChannelIndex
fun setMbcByChannelIndex(
channelIndex: Int,
mbc: DynamicsProcessing.Mbc!
): Unit
setPostEqAllChannelsTo
fun setPostEqAllChannelsTo(postEq: DynamicsProcessing.Eq!): Unit
setPostEqBandAllChannelsTo
fun setPostEqBandAllChannelsTo(
band: Int,
postEqBand: DynamicsProcessing.EqBand!
): Unit
setPostEqBandByChannelIndex
fun setPostEqBandByChannelIndex(
channelIndex: Int,
band: Int,
postEqBand: DynamicsProcessing.EqBand!
): Unit
setPostEqByChannelIndex
fun setPostEqByChannelIndex(
channelIndex: Int,
postEq: DynamicsProcessing.Eq!
): Unit
setPreEqAllChannelsTo
fun setPreEqAllChannelsTo(preEq: DynamicsProcessing.Eq!): Unit
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
fun setPreEqBandAllChannelsTo(
band: Int,
preEqBand: DynamicsProcessing.EqBand!
): Unit
setPreEqBandByChannelIndex
fun setPreEqBandByChannelIndex(
channelIndex: Int,
band: Int,
preEqBand: DynamicsProcessing.EqBand!
): Unit
setPreEqByChannelIndex
fun setPreEqByChannelIndex(
channelIndex: Int,
preEq: DynamicsProcessing.Eq!
): Unit
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
fun toString(): String
| Return | |
|---|---|
String | 
            a string representation of the object. |