sound

package
v0.240514.0 Latest Latest
Warning

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

Go to latest
Published: May 14, 2024 License: CC0-1.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Broken

func Broken()

play file and wait finishing

func Init

func Init(conf *Config, log *log2.Log, startingVMC bool)

func PlayCustom added in v0.240207.0

func PlayCustom()

func PlayFile

func PlayFile(file string, volume ...int) error

func PlayFinishedCooking added in v0.240207.0

func PlayFinishedCooking()

func PlayKeyBeep

func PlayKeyBeep()

func PlayMoneyIn

func PlayMoneyIn()

func PlayStartedCooking added in v0.240207.0

func PlayStartedCooking()

func PlayTrash

func PlayTrash()

func PlayVmcStarted added in v0.240207.0

func PlayVmcStarted()

func PlayVmcStarting added in v0.240207.0

func PlayVmcStarting()

func Stop

func Stop()

Types

type Config

type Config struct {
	Disabled              bool
	Folder                string
	KeyBeep               string
	KeyBeepVolume         int
	Starting              string
	StartingVolume        int
	Started               string
	StartedVolume         int
	MoneyIn               string
	MoneyInVolume         int
	Trash                 string
	TrashVolume           int
	Broken                string
	BrokenVolume          int
	StartedCooking        string
	StartedCookingVolume  int
	FinishedCooking       string
	FinishedCookingVolume int
	Custom                string
}

sound volume use fixed point. 12 = 1.2

type Sound

type Sound struct {
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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