audio

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Dec 29, 2019 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SoundDirectoryBase = "sound"
)

Variables

This section is empty.

Functions

func InitSoundGeneratedData

func InitSoundGeneratedData(indexToName []string, nameToIndex map[string]SoundIndex)

InitSoundGeneratedData is used by code generated by gmlgo so you can query a sound by index or name

Types

type SoundIndex

type SoundIndex int32

func (SoundIndex) IsPlaying

func (index SoundIndex) IsPlaying() bool

IsPlaying will check if a sound is playing

func (SoundIndex) Name

func (index SoundIndex) Name() string

Name of the sound asset

func (SoundIndex) Play

func (index SoundIndex) Play()

Play will play a sound

func (SoundIndex) SetVolume

func (index SoundIndex) SetVolume(volume float64)

func (SoundIndex) Stop

func (index SoundIndex) Stop()

Stop will stop playing a sound

Jump to

Keyboard shortcuts

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