sound

package
v1.11.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 26, 2024 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EffectCache added in v1.8.0

type EffectCache struct {
	// contains filtered or unexported fields
}

EffectCache retrieves audio samples stored as VOC files from a localizer and keeps them cached until they are invalidated.

func NewEffectCache added in v1.8.0

func NewEffectCache(localizer resource.Localizer) *EffectCache

NewEffectCache returns a new instance.

func (*EffectCache) Audio added in v1.8.0

func (cache *EffectCache) Audio(key resource.Key) (audio.L8, error)

Audio retrieves and caches the underlying sound.

func (*EffectCache) InvalidateResources added in v1.8.0

func (cache *EffectCache) InvalidateResources(ids []resource.ID)

InvalidateResources lets the cache remove any sounds from resources that are specified in the given slice.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL