#include <phosphor-audio/include/PhosphorAudio/CavaSpectrumProvider.h>
|
| static bool | isCavaInstalled () |
| |
| static QString | detectAudioMethod () |
| |
| static SpectrumOptions | normalizedOptions (SpectrumOptions options) |
| | Clamp/sanitize an option set to the values the provider would actually run with: integer ranges bounded to AudioDefaults, bar count rounded up to even, control characters stripped from the input strings, and unknown input methods coerced back to auto-detect (empty).
|
| |
| static QString | generateConfig (const SpectrumOptions &options) |
| | The cava config-file text the provider would run options with (normalized first, so hostile or out-of-range values are emitted in their sanitized form).
|
| |
◆ CavaSpectrumProvider()
| PhosphorAudio::CavaSpectrumProvider::CavaSpectrumProvider |
( |
QObject * |
parent = nullptr | ) |
|
|
explicit |
◆ ~CavaSpectrumProvider()
| PhosphorAudio::CavaSpectrumProvider::~CavaSpectrumProvider |
( |
| ) |
|
|
override |
◆ detectAudioMethod()
| static QString PhosphorAudio::CavaSpectrumProvider::detectAudioMethod |
( |
| ) |
|
|
static |
◆ generateConfig()
| static QString PhosphorAudio::CavaSpectrumProvider::generateConfig |
( |
const SpectrumOptions & |
options | ) |
|
|
static |
The cava config-file text the provider would run options with (normalized first, so hostile or out-of-range values are emitted in their sanitized form).
This is what start() writes to cava's stdin; exposed so the generated config is testable without spawning cava.
◆ isAvailable()
| bool PhosphorAudio::CavaSpectrumProvider::isAvailable |
( |
| ) |
const |
|
overridevirtual |
◆ isCavaInstalled()
| static bool PhosphorAudio::CavaSpectrumProvider::isCavaInstalled |
( |
| ) |
|
|
static |
◆ isRunning()
| bool PhosphorAudio::CavaSpectrumProvider::isRunning |
( |
| ) |
const |
|
overridevirtual |
◆ normalizedOptions()
Clamp/sanitize an option set to the values the provider would actually run with: integer ranges bounded to AudioDefaults, bar count rounded up to even, control characters stripped from the input strings, and unknown input methods coerced back to auto-detect (empty).
Public so callers can preview the applied values before committing a set.
◆ options()
◆ setOptions()
| void PhosphorAudio::CavaSpectrumProvider::setOptions |
( |
const SpectrumOptions & |
options | ) |
|
|
overridevirtual |
Apply a full parameter set.
Implementations normalize the values, no-op when nothing changed, and restart capture at most once for however many fields differ.
Implements PhosphorAudio::IAudioSpectrumProvider.
◆ spectrum()
| QVector< float > PhosphorAudio::CavaSpectrumProvider::spectrum |
( |
| ) |
const |
|
overridevirtual |
◆ start()
| void PhosphorAudio::CavaSpectrumProvider::start |
( |
| ) |
|
|
overridevirtual |
◆ stop()
| void PhosphorAudio::CavaSpectrumProvider::stop |
( |
| ) |
|
|
overridevirtual |
The documentation for this class was generated from the following file: