Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type GroupedSound ¶
type GroupedSound struct {
// contains filtered or unexported fields
}
func (*GroupedSound) CheckGC ¶
func (g *GroupedSound) CheckGC() dontgc.State
CheckGC checks if GC is currently allowed. Grouped sounds may be GC'd only while not playing.
func (*GroupedSound) Current ¶
func (g *GroupedSound) Current() time.Duration
Current returns the current playback position.
func (*GroupedSound) IsPlaying ¶
func (g *GroupedSound) IsPlaying() bool
IsPlaying returns whether the sound is currently playing.
type Sound ¶
type Sound struct {
// contains filtered or unexported fields
}
Sound represents a sound effect.
func Load ¶
Load loads a sound effect. Multiple Load calls to the same sound effect return the same cached instance.
func (*Sound) Grouped ¶
func (s *Sound) Grouped() *GroupedSound
PlayGrouped starts the given sound effect in a grouped fashion.
Click to show internal directories.
Click to hide internal directories.