Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SoundEffectCache ¶
type SoundEffectCache struct {
// contains filtered or unexported fields
}
SoundEffectCache retrieves audio samples stored as VOC files from a localizer and keeps them cached until they are invalidated.
func NewSoundCache ¶
func NewSoundCache(localizer resource.Localizer) *SoundEffectCache
NewSoundCache returns a new instance.
func (*SoundEffectCache) InvalidateResources ¶
func (cache *SoundEffectCache) InvalidateResources(ids []resource.ID)
InvalidateResources lets the cache remove any sounds from resources that are specified in the given slice.
Click to show internal directories.
Click to hide internal directories.