Versions in this module Expand all Collapse all v1 v1.0.0 Oct 16, 2023 Changes in this version + type AudioFile struct — darwin/amd64, linux/amd64, windows/amd64 + func NewAudioFile(filename string) (*AudioFile, error) + func (af *AudioFile) Close() error + func (af *AudioFile) CurrentTime() float64 + func (af *AudioFile) Info() AudioInfo + func (af *AudioFile) Looping() bool + func (af *AudioFile) Read(pdata unsafe.Pointer, nbytes int) (int, error) + func (af *AudioFile) Seek(pos uint) error + func (af *AudioFile) SetLooping(looping bool) + type AudioInfo struct — darwin/amd64, linux/amd64, windows/amd64 + BitsSample int + BytesSec int + Channels int + DataSize int + Format int + SampleRate int + TotalTime float64 + type Listener struct + func NewListener() *Listener + func (l *Listener) Gain() float32 + func (l *Listener) Render(gl *gls.GLS) + func (l *Listener) SetGain(gain float32) + func (l *Listener) SetVelocity(vx, vy, vz float32) + func (l *Listener) SetVelocityVec(v *math32.Vector3) + func (l *Listener) Velocity() (float32, float32, float32) + func (l *Listener) VelocityVec() math32.Vector3 + type Player struct — darwin/amd64, linux/amd64, windows/amd64 + func NewPlayer(filename string) (*Player, error) + func (p *Player) CurrentTime() float64 + func (p *Player) Dispose() + func (p *Player) Gain() float32 + func (p *Player) InnerCone() float32 + func (p *Player) Looping() bool + func (p *Player) MaxGain() float32 + func (p *Player) MinGain() float32 + func (p *Player) OuterCone() float32 + func (p *Player) Pause() + func (p *Player) Pitch() float32 + func (p *Player) Play() error + func (p *Player) Render(gl *gls.GLS) + func (p *Player) SetGain(gain float32) + func (p *Player) SetInnerCone(inner float32) + func (p *Player) SetLooping(looping bool) + func (p *Player) SetMaxGain(gain float32) + func (p *Player) SetMinGain(gain float32) + func (p *Player) SetOuterCone(outer float32) + func (p *Player) SetPitch(pitch float32) + func (p *Player) SetRolloffFactor(rfactor float32) + func (p *Player) SetVelocity(vx, vy, vz float32) + func (p *Player) State() int + func (p *Player) Stop() + func (p *Player) TotalTime() float64 + func (p *Player) Velocity() (float32, float32, float32) + func (p *Player) VelocityVec() math32.Vector3 + func (p Player) SetVelocityVec(v *math32.Vector3)