audio

package
v0.0.0-...-5bfd26b Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2016 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Play = func(s Sound) {}

Play plays the given sound. It is overridden by Init.

View Source
var Terminate = func() {}

Terminate shuts down the audio system. It is overridden by Init.

Functions

func Init

func Init() error

Init starts the audio system, loads sound assets, and starts the sound loop.

Types

type Sound

type Sound int

Sound is an enum that identifies a short sound in the game.

const (
	SoundMove Sound = iota
	SoundSelect
	SoundSwap
	SoundClear
	SoundThud
)

func (Sound) String

func (i Sound) String() string

Jump to

Keyboard shortcuts

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