Set MAX volume for SDL2 Mixer, as well as the volume for all audio sinks via wpctl to 1.0. This forces the computer to always be at absolute max volume, without creating scripts on the machine to run wpctl commands. Leaving the display or connected speakers to be in full control over the volume of music.
44 lines
1.1 KiB
Go
44 lines
1.1 KiB
Go
// schema.go defines the database schema for the GORM models.
|
|
package db
|
|
|
|
import "gorm.io/gorm"
|
|
|
|
type AppConfig struct {
|
|
gorm.Model
|
|
DataDir string
|
|
AssetsDir string
|
|
EmailAddress string
|
|
LicenseKey string
|
|
SystemLevel string // BASIC, ADVANCED, ELITE, COMMERCIAL
|
|
SelectedAudio string // Audio filepath
|
|
SelectedAudioDevice string // The pipewire device name
|
|
InitialFontSize int // How large to create the font atlas
|
|
StandardFontSize int // The font size used for most text rendering
|
|
LinePattern string // "fibonacci"
|
|
AudioEnabled bool
|
|
}
|
|
|
|
type Log struct {
|
|
gorm.Model
|
|
Timestamp int64
|
|
Level string
|
|
Message string
|
|
}
|
|
|
|
type Proclamation struct {
|
|
ID string `gorm:"primaryKey"`
|
|
Name string
|
|
Content string
|
|
SolfeggioFrequencyID int
|
|
CategoryID int
|
|
Selected bool
|
|
Available bool
|
|
Price float64
|
|
}
|
|
|
|
type ProclamationCategory struct {
|
|
ID int `gorm:"primaryKey"`
|
|
Name string
|
|
ParentId int
|
|
}
|