AudioEffectSpectrumAnalyzer
Audio effect that can be used for real-time audio visualizations.
AudioEffectSpectrumAnalyzer.swift:14class AudioEffectSpectrumAnalyzer
This audio effect does not affect sound output, but can be used for real-time audio visualizations.
See also AudioStreamGenerator
for procedurally generating sounds.
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.
Types
Type members
Instance members
var bufferLength: Double
The length of the buffer to keep (in seconds). Higher values keep data around for longer, but require more memory.
var fftSize: AudioEffectSpectrumAnalyzer.FFTSize
The size of the Fast Fourier transform buffer. Higher values smooth out the spectrum analysis over time, but have greater latency. The effects of this higher latency are especially noticeable with sudden amplitude changes.
var tapBackPos: Double