Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultPath ¶
DefaultPath returns the default config file path.
func WriteDefault ¶
WriteDefault writes a default config to path.
Types ¶
type AudioConfig ¶
type AudioConfig struct {
SampleRate int `toml:"sample_rate" comment:"Output sample rate in Hz. 44100 is a safe default."`
ResampleQuality int `` /* 209-byte string literal not displayed */
BufferMs int `toml:"buffer_ms" comment:"Speaker buffer size in milliseconds (lower = lower latency, higher = more stable)."`
}
AudioConfig holds audio-related settings.
type CacheConfig ¶
type CacheConfig struct {
Dir string `toml:"dir" comment:"Base directory where cache files are stored"`
}
type Config ¶
type Config struct {
Audio AudioConfig `toml:"audio"`
MPRIS MPRISConfig `toml:"mpris"`
TUI TUIConfig `toml:"tui"`
Lyrics LyricsConfig `toml:"lyrics"`
Cache CacheConfig `toml:"cache"`
}
Config is the root configuration object.
type LrcLibCacheConfig ¶
type LrcLibCacheConfig struct {
Enabled bool `toml:"enabled" comment:"Enable on-disk cache for lyrics"`
}
type LrcLibConfig ¶
type LrcLibConfig struct {
Enabled bool `toml:"enabled" comment:"Enable lrclib.net integration for obtaining lyrics."`
Cache LrcLibCacheConfig `toml:"cache"`
}
type LyricsConfig ¶
type LyricsConfig struct {
LrcLib LrcLibConfig `toml:"lrclib"`
}
type MPRISConfig ¶
type MPRISConfig struct {
Enabled bool `toml:"enabled" comment:"Enable DBus/MPRIS integration for media controls."`
}
MPRISConfig holds DBus/MPRIS integration settings.
Click to show internal directories.
Click to hide internal directories.