audio

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2026 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EmbeddedPrefix = "embedded:"
	UserPrefix     = "user:"
)

Variables

This section is empty.

Functions

func ReadEmbedded

func ReadEmbedded(id string) ([]byte, error)

Types

type Playback

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

func NewPlayback

func NewPlayback(audioDir string) (*Playback, error)

func (*Playback) Play

func (p *Playback) Play(ctx context.Context, id string, volume float64, reportError func(error)) error

type Sound

type Sound struct {
	ID    string
	Label string
}

func EmbeddedSounds

func EmbeddedSounds() ([]Sound, error)

Jump to

Keyboard shortcuts

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