Documentation ¶
Index ¶
- func SetGlobalVolume(vol float64)
- func SetListenerDirection(x, y, z float32)
- func SetListenerPosition(x, y, z float32)
- type Music
- type Sound
- func (s Sound) Free()
- func (s Sound) Play()
- func (s Sound) SetAttenuation(att float64)
- func (s Sound) SetBuffer(sb SoundBuffer)
- func (s Sound) SetMinDistance(dist float64)
- func (s Sound) SetPitch(v float64)
- func (s Sound) SetPosition(x, y, z float32)
- func (s Sound) SetRelative(rel bool)
- func (s Sound) SetVolume(v float64)
- func (s Sound) Status() Status
- type SoundBuffer
- type Status
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetGlobalVolume ¶
func SetGlobalVolume(vol float64)
func SetListenerDirection ¶
func SetListenerDirection(x, y, z float32)
func SetListenerPosition ¶
func SetListenerPosition(x, y, z float32)
Types ¶
type Music ¶
type Music struct {
// contains filtered or unexported fields
}
type Sound ¶
type Sound struct {
// contains filtered or unexported fields
}
func (Sound) SetAttenuation ¶
func (Sound) SetBuffer ¶
func (s Sound) SetBuffer(sb SoundBuffer)
func (Sound) SetMinDistance ¶
func (Sound) SetPosition ¶
func (Sound) SetRelative ¶
type SoundBuffer ¶
type SoundBuffer struct {
// contains filtered or unexported fields
}
func NewSoundBuffer ¶
func NewSoundBuffer(file string) SoundBuffer
func NewSoundBufferData ¶
func NewSoundBufferData(data []byte) SoundBuffer
func (SoundBuffer) Free ¶
func (sb SoundBuffer) Free()
Click to show internal directories.
Click to hide internal directories.