sound

package
v0.250117.0 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2025 License: CC0-1.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

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

func PlayFile

func PlayFile(file string) error

func PlayFileNoWait added in v0.240615.0

func PlayFileNoWait(file string) error

func PlayKeyBeep

func PlayKeyBeep()

func PlayMoneyIn

func PlayMoneyIn()

func SetDefaultVolume added in v0.250104.0

func SetDefaultVolume()

set volume from config value is fixed point. 10 = 100%

func SetVolume added in v0.250104.0

func SetVolume(v int16)

func Stop

func Stop()

Types

type Sound

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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