AudioAnalyzer
AudioAnalyzer takes measurements from audio streams that are wired to it through Wire. It provides a single Input pin but does not produce any output streams.
Résumé
Propriétés
The loudest volume observed during the last audio buffer.
The root-mean-square average volume observed during the last audio buffer.
Enables usage of GetSpectrum.
Méthodes
Returns an array of Wires that are connected to the specified pin.
Returns the frequency spectrum of the last audio buffer.
Propriétés
PeakLevel
The loudest volume observed during the last audio buffer. This property changes often and thus does not fire changed events.
RmsLevel
The root-mean-square average volume observed during the last audio buffer. This property is generally more stable than PeakLevel but it may not capture momentary volume spikes.
SpectrumEnabled
Enables usage of GetSpectrum(). If false, GetSpectrum() returns an empty array, but the CPU overhead of the AudioAnalyzer is dramatically reduced. This means that if you are only analyzing the volume of an audio stream, you can disable this property to improve performance.
Méthodes
GetConnectedWires
Returns an array of Wires that are connected to the specified pin. AudioAnalyzer has one "Input" pin.