sound

package
v0.241210.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

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

func PlayFile

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

func PlayFileNoWait added in v0.240615.0

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

func PlayKeyBeep

func PlayKeyBeep()

func PlayMoneyIn

func PlayMoneyIn()

func Stop

func Stop()

Types

type Config

type Config struct {
	Disabled      bool
	Folder        string
	KeyBeep       string
	KeyBeepVolume int
	MoneyIn       string
	MoneyInVolume 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