Phosphor
Qt6 / Wayland library suite for window-management tools
 
Loading...
Searching...
No Matches
PhosphorAudio Namespace Reference

Namespaces

namespace  Defaults
 

Classes

class  CavaSpectrumProvider
 
class  IAudioSpectrumProvider
 
struct  SpectrumOptions
 Full analysis parameter set for a spectrum provider. More...
 

Enumerations

enum class  ChannelMode { Stereo , MonoAverage , MonoLeft , MonoRight }
 How the analyzed channels map onto the emitted bar vector. More...
 

Functions

PHOSPHORAUDIO_EXPORT QString channelModeToString (ChannelMode mode)
 Canonical config-string forms ("stereo", "mono-average", "mono-left", "mono-right") for persisting a ChannelMode.
 
PHOSPHORAUDIO_EXPORT ChannelMode channelModeFromString (const QString &mode)
 
double extraSmoothingFromPercent (int percent)
 Conversions between the persisted settings representation and the SpectrumOptions field values, shared by every settings consumer so the percent scale and the "auto" sentinel are spelled exactly once.
 
QString inputMethodFromSetting (const QString &configured)
 

Enumeration Type Documentation

◆ ChannelMode

enum class PhosphorAudio::ChannelMode
strong

How the analyzed channels map onto the emitted bar vector.

Stereo emits left bars low→high followed by right bars low→high (cava's raw layout); the mono modes collapse to a single low→high block.

Enumerator
Stereo 
MonoAverage 
MonoLeft 
MonoRight 

Function Documentation

◆ channelModeFromString()

PHOSPHORAUDIO_EXPORT ChannelMode PhosphorAudio::channelModeFromString ( const QString &  mode)

◆ channelModeToString()

PHOSPHORAUDIO_EXPORT QString PhosphorAudio::channelModeToString ( ChannelMode  mode)

Canonical config-string forms ("stereo", "mono-average", "mono-left", "mono-right") for persisting a ChannelMode.

fromString falls back to Stereo for unknown input. PlasmaZones itself persists the canonical strings directly (its settings UI writes them), so it only consumes fromString; toString is the symmetric serialization half kept for library consumers that hold a ChannelMode and need the persisted form.

◆ extraSmoothingFromPercent()

double PhosphorAudio::extraSmoothingFromPercent ( int  percent)
inline

Conversions between the persisted settings representation and the SpectrumOptions field values, shared by every settings consumer so the percent scale and the "auto" sentinel are spelled exactly once.

◆ inputMethodFromSetting()

QString PhosphorAudio::inputMethodFromSetting ( const QString &  configured)
inline