sound

package
v0.240109.0 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 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 PlayComplete

func PlayComplete()

func PlayFile

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

func PlayKeyBeep

func PlayKeyBeep()

func PlayMoneyIn

func PlayMoneyIn()

func PlayStarted

func PlayStarted()

func PlayStarting

func PlayStarting()

func PlayTrash

func PlayTrash()

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
	Complete       string
	CompleteVolume int
}

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