config

package
v0.20.0 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2020 License: GPL-3.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultAppTitle     = "emu8"
	DefaultMachineModel = "Speccy"
)

Default configuration constants

View Source
const (
	DefaultVideoScale      = 2
	DefaultVideoFullScreen = false
)

Default configuration constants

View Source
const (
	DefaultAudioFrecuency = 48000 // 48 KHz
	DefaultAudioMute      = false
)

Default configuration constants

Variables

This section is empty.

Functions

This section is empty.

Types

type AudioConfig

type AudioConfig struct {
	Frequency int
	Mute      bool
}

AudioConfig the audio configuration

type Config

type Config struct {
	AppTitle       string
	MachineModel   string
	MachineOptions string
	FileName       string
	Video          VideoConfig
	Audio          AudioConfig
}

Config is the main configuration

func Get

func Get() *Config

Get gets the main configuration

type VideoConfig

type VideoConfig struct {
	Scale      int
	FullScreen bool
}

VideoConfig the video configuration

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL