audio

package
v0.0.0-...-df128bb Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2021 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init() error

func PauseAll

func PauseAll()

func ResumeAll

func ResumeAll()

func SetListenerPosition

func SetListenerPosition(x, y, z, rx, ry, rz float32)

func StopMusic

func StopMusic()

func StopSounds

func StopSounds()

func Tick

func Tick()

Types

type Sound

type Sound struct {
	Name     string
	Pitch    float32
	Volume   float32
	MaxDelay float32

	Loop  bool
	Start float32
	End   float32
	// contains filtered or unexported fields
}

func (*Sound) PlayMusic

func (s *Sound) PlayMusic(restart bool)

func (*Sound) PlaySound

func (s *Sound) PlaySound(delay, overridePitch, overrideVolume, x, y, z float32)

func (*Sound) PlaySoundGlobal

func (s *Sound) PlaySoundGlobal(delay, overridePitch, overrideVolume float32)

func (*Sound) StartPreload

func (s *Sound) StartPreload()

Jump to

Keyboard shortcuts

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