Versions in this module Expand all Collapse all v1 v1.0.0 Oct 8, 2018 Changes in this version + var SampleRate = 44100 + func GetMasterVolume() float64 + func SetMasterVolume(volume float64) + type AudioComponent struct + Player *Player + func (c *AudioComponent) GetAudioComponent() *AudioComponent + type AudioFace interface + GetAudioComponent func() *AudioComponent + type AudioSystem struct + func (a *AudioSystem) Add(basic *ecs.BasicEntity, audio *AudioComponent) + func (a *AudioSystem) AddByInterface(i ecs.Identifier) + func (a *AudioSystem) New(w *ecs.World) + func (a *AudioSystem) Remove(basic ecs.BasicEntity) + func (a *AudioSystem) Update(dt float32) + type Audioable interface + type NotAudioComponent struct + func (n *NotAudioComponent) GetNotAudioComponent() *NotAudioComponent + type NotAudioable interface + GetNotAudioComponent func() *NotAudioComponent + type Player struct + Repeat bool + func LoadedPlayer(url string) (*Player, error) + func (p *Player) Close() error + func (p *Player) Current() time.Duration + func (p *Player) GetVolume() float64 + func (p *Player) IsPlaying() bool + func (p *Player) Pause() + func (p *Player) Play() + func (p *Player) Rewind() error + func (p *Player) Seek(offset time.Duration) error + func (p *Player) SetVolume(volume float64) + func (p *Player) URL() string