internal

package
v0.21.0 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Channel added in v0.18.2

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

type Media

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

func (*Media) Delete

func (m *Media) Delete()

func (*Media) Length

func (m *Media) Length() time.Duration

type MediaFrame added in v0.18.2

type MediaFrame struct {
	Left  float32
	Right float32
}

func (*MediaFrame) Add added in v0.18.2

func (f *MediaFrame) Add(other MediaFrame)

func (*MediaFrame) ApplyGain added in v0.18.2

func (f *MediaFrame) ApplyGain(gain float32)

func (*MediaFrame) ApplyPan added in v0.18.2

func (f *MediaFrame) ApplyPan(pan float32)

func (*MediaFrame) Clamp added in v0.18.2

func (f *MediaFrame) Clamp()

type Playback

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

func (*Playback) Frame added in v0.18.0

func (p *Playback) Frame() (MediaFrame, bool)

func (*Playback) IsDone added in v0.18.1

func (p *Playback) IsDone() bool

func (*Playback) Stop

func (p *Playback) Stop()

type Player

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

func NewPlayer

func NewPlayer() (*Player, error)

func (*Player) Close added in v0.18.0

func (p *Player) Close()

func (*Player) CreateMedia

func (p *Player) CreateMedia(info audio.MediaInfo) *Media

func (*Player) Play

func (p *Player) Play(media *Media, info audio.PlayInfo) *Playback

Jump to

Keyboard shortcuts

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