config

package
v0.0.0-...-c7366c5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 11, 2025 License: Unlicense Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultSampleRate = 44100
	DefaultFadeIn     = 1
	DefaultFadeOut    = 1
	DefaultDuration   = -1
)

Variables

This section is empty.

Functions

func EnsureDefaultConfig

func EnsureDefaultConfig() error

func GetDefaultConfigPath

func GetDefaultConfigPath() (string, error)

Types

type Config

type Config struct {
	SampleRate float64 `yaml:"sample-rate"`
	FadeIn     float64 `yaml:"fade-in"`
	FadeOut    float64 `yaml:"fade-out"`
	Duration   float64 `yaml:"duration"`
}

func LoadConfig

func LoadConfig(path string) (*Config, error)

func (*Config) Validate

func (c *Config) Validate() error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳