AudioEffectEQ
Base class for audio equalizers. Gives you control over frequencies.
AudioEffectEQ.swift:14class AudioEffectEQ
Use it to create a custom equalizer if AudioEffectEQ6
, AudioEffectEQ10
or AudioEffectEQ21
don’t fit your needs.
AudioEffectEQ gives you control over frequencies. Use it to compensate for existing deficiencies in audio. AudioEffectEQs are useful on the Master bus to completely master a mix and give it more character. They are also useful when a game is run on a mobile device, to adjust the mix to that kind of speakers (it can be added but disabled when headphones are plugged).
Superclasses
class AudioEffect
Audio effect for audio.
Citizens in SwiftGodot
Conformances
protocol CustomStringConvertible
A type with a customized textual representation.
protocol Equatable
A type that can be compared for value equality.
protocol Hashable
A type that can be hashed into a
Hasher
to produce an integer hash value.protocol Identifiable<ID>
A class of types whose instances hold the value of an entity with stable identity.
protocol VariantRepresentable
Types that conform to VariantRepresentable can be stored directly in
Variant
with no conversion. These include all of the Variant types from Godot (for exampleGString
,Rect
,Plane
), Godot objects (those that subclass SwiftGodot.Object) as well as the built-in Swift types UInt8, Int64 and Double.protocol VariantStorable
Types that conform to VariantStorable can be stored in a Variant and can be extracted back out of a Variant.
Type members
Instance members
func getBandCount(
) -> Int32 Returns the number of bands of the equalizer.
func getBandGainDb(bandIdx: Int32
) -> Double Returns the band’s gain at the specified index, in dB.
func setBandGainDb(bandIdx: Int32, volumeDb: Double
) Sets band’s gain at the specified index, in dB.
Subclasses
class AudioEffectEQ10
Adds a 10-band equalizer audio effect to an Audio bus. Gives you control over frequencies from 31 Hz to 16000 Hz.
class AudioEffectEQ21
Adds a 21-band equalizer audio effect to an Audio bus. Gives you control over frequencies from 22 Hz to 22000 Hz.
class AudioEffectEQ6
Adds a 6-band equalizer audio effect to an audio bus. Gives you control over frequencies from 32 Hz to 10000 Hz.