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

Most visited


Recently visited


DynamicsProcessing.BandBase

public static class DynamicsProcessing.BandBase
extends Object

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


Base class for bands

Summary


Public constructors

BandBase(boolean enabled, float cutoffFrequency)

Class constructor for BandBase

Public methods

float getCutoffFrequency()

gets cutoffFrequency for this band in Hertz (Hz)

boolean isEnabled()

returns enabled state of the band

void setCutoffFrequency(float frequency)

sets topmost frequency number (in Hz) this band will process.

void setEnabled(boolean enabled)

sets enabled state of the band

String toString()

Returns a string representation of the object.

Inherited methods

Public constructors


BandBase

public BandBase (boolean enabled, 
                float cutoffFrequency)

Class constructor for BandBase

Parameters
enabled boolean: true if this band is currently used to process sound. When false, the band is effectively muted and sound set to zero.

cutoffFrequency float: topmost frequency number (in Hz) this band will process. The effective bandwidth for the band is then computed using this and the previous band topmost frequency (or 0 Hz for band number 0). Frequencies are expected to increase with band number, thus band 0 cutoffFrequency <= band 1 cutoffFrequency, and so on.

Public methods


getCutoffFrequency

public float getCutoffFrequency ()

gets cutoffFrequency for this band in Hertz (Hz)

Returns
float cutoffFrequency for this band in Hertz (Hz)

isEnabled

public boolean isEnabled ()

returns enabled state of the band

Returns
boolean true if bands is enabled for processing, false otherwise

setCutoffFrequency

public void setCutoffFrequency (float frequency)

sets topmost frequency number (in Hz) this band will process. The effective bandwidth for the band is then computed using this and the previous band topmost frequency (or 0 Hz for band number 0). Frequencies are expected to increase with band number, thus band 0 cutoffFrequency <= band 1 cutoffFrequency, and so on.

setEnabled

public void setEnabled (boolean enabled)

sets enabled state of the band

Parameters
enabled boolean: true for enabled, false otherwise

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.

Browse this site in English?

You requested a page in English, but your language preference for this site is English.

Would you like to change your language preference and browse this site in English? If you want to change your language preference later, use the language menu at the bottom of each page.