moduleaudio

package
v0.1.9 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2026 License: MIT Imports: 3 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Player

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

Player owns one playback cursor. Decoded clips may be shared, while playback state stays private and follows the owning scene's lifetime.

func NewPlayer

func NewPlayer(c *module.Context, resource string) (*Player, error)

func (*Player) Activate

func (p *Player) Activate(active bool) error

func (*Player) Close

func (p *Player) Close() error

func (*Player) Duration

func (p *Player) Duration() time.Duration

func (*Player) Err

func (p *Player) Err() error

func (*Player) IsPlaying

func (p *Player) IsPlaying() bool

func (*Player) Pause

func (p *Player) Pause() error

func (*Player) Play

func (p *Player) Play() error

func (*Player) Position

func (p *Player) Position() time.Duration

func (*Player) Seek

func (p *Player) Seek(position time.Duration) error

func (*Player) SetVolume

func (p *Player) SetVolume(volume float64) error

func (*Player) Stop

func (p *Player) Stop() error

func (*Player) Volume

func (p *Player) Volume() float64

Jump to

Keyboard shortcuts

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