Full analysis parameter set for a spectrum provider. More...
#include <phosphor-audio/include/PhosphorAudio/IAudioSpectrumProvider.h>
Public Member Functions | |
| bool | operator== (const SpectrumOptions &other) const =default |
Public Attributes | |
| int | barCount = Defaults::DefaultBarCount |
| int | framerate = Defaults::DefaultFramerate |
| bool | autosens = Defaults::DefaultAutosens |
| Automatic gain: the analyzer self-scales so output fills 0..1. | |
| int | sensitivity = Defaults::DefaultSensitivity |
| Percent gain (100 = unity). | |
| int | noiseReduction = Defaults::DefaultNoiseReduction |
| Primary smoothing knob (cava's [smoothing] noise_reduction, 0-100): 0 = fast and twitchy, 100 = slow and smooth. | |
| int | lowerCutoffHz = Defaults::DefaultLowerCutoffHz |
| Analyzed frequency band. | |
| int | higherCutoffHz = Defaults::DefaultHigherCutoffHz |
| bool | monstercat = Defaults::DefaultMonstercat |
| Monstercat-style neighbor spread filter. | |
| bool | waves = Defaults::DefaultWaves |
| Wave-style spread filter. | |
| ChannelMode | channelMode = ChannelMode::Stereo |
| bool | reverse = Defaults::DefaultReverse |
| Reverse the frequency order of the emitted bars. | |
| double | extraSmoothing = Defaults::DefaultExtraSmoothing |
| Provider-side EMA on top of noiseReduction: fraction of the previous frame retained per update (0 = off). | |
| QString | inputMethod |
| Capture backend override ("pipewire", "pulse", ...). Empty = detect. | |
| QString | inputSource = QStringLiteral("auto") |
| Capture device/source for the backend. "auto" = the backend default. | |
Full analysis parameter set for a spectrum provider.
A plain value type: build one (or copy the provider's current set via options()), adjust the fields, and hand it back through setOptions() — the provider normalizes (clamps ranges, rounds bars to even, sanitizes strings) and applies the whole set as one change, so a multi-field edit costs a single restart.
|
default |
| bool PhosphorAudio::SpectrumOptions::autosens = Defaults::DefaultAutosens |
Automatic gain: the analyzer self-scales so output fills 0..1.
| int PhosphorAudio::SpectrumOptions::barCount = Defaults::DefaultBarCount |
| ChannelMode PhosphorAudio::SpectrumOptions::channelMode = ChannelMode::Stereo |
| double PhosphorAudio::SpectrumOptions::extraSmoothing = Defaults::DefaultExtraSmoothing |
Provider-side EMA on top of noiseReduction: fraction of the previous frame retained per update (0 = off).
| int PhosphorAudio::SpectrumOptions::framerate = Defaults::DefaultFramerate |
| int PhosphorAudio::SpectrumOptions::higherCutoffHz = Defaults::DefaultHigherCutoffHz |
| QString PhosphorAudio::SpectrumOptions::inputMethod |
Capture backend override ("pipewire", "pulse", ...). Empty = detect.
| QString PhosphorAudio::SpectrumOptions::inputSource = QStringLiteral("auto") |
Capture device/source for the backend. "auto" = the backend default.
| int PhosphorAudio::SpectrumOptions::lowerCutoffHz = Defaults::DefaultLowerCutoffHz |
Analyzed frequency band.
The defaults' ranges guarantee lowerCutoffHz < higherCutoffHz for any pair of in-range values.
| bool PhosphorAudio::SpectrumOptions::monstercat = Defaults::DefaultMonstercat |
Monstercat-style neighbor spread filter.
| int PhosphorAudio::SpectrumOptions::noiseReduction = Defaults::DefaultNoiseReduction |
Primary smoothing knob (cava's [smoothing] noise_reduction, 0-100): 0 = fast and twitchy, 100 = slow and smooth.
| bool PhosphorAudio::SpectrumOptions::reverse = Defaults::DefaultReverse |
Reverse the frequency order of the emitted bars.
| int PhosphorAudio::SpectrumOptions::sensitivity = Defaults::DefaultSensitivity |
Percent gain (100 = unity).
With autosens on this is only the starting point the auto-gain adapts from.
| bool PhosphorAudio::SpectrumOptions::waves = Defaults::DefaultWaves |
Wave-style spread filter.