audiowrap

package
v1.5.220 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DumpFrame

func DumpFrame(dumpFile io.Writer, toTime time.Duration) error

func Init

func Init() error

func InitDumping

func InitDumping()

func Rate

func Rate() int

func SampleRate

func SampleRate() int

func Update

func Update()

Types

type FadeHandle

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

func (*FadeHandle) RestoreIn

func (f *FadeHandle) RestoreIn(d time.Duration) *Player

type Player

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

func NewPlayer

func NewPlayer(src func() (io.ReadCloser, error)) (*Player, error)

func NewPlayerFromBytes

func NewPlayerFromBytes(src []byte) (*Player, error)

func NoPlayer added in v1.0.59

func NoPlayer() *Player

func (*Player) CheckGC

func (p *Player) CheckGC() dontgc.State

func (*Player) Close

func (p *Player) Close() error

func (*Player) CloseInstantly

func (p *Player) CloseInstantly() error

func (*Player) FadeOutIn

func (p *Player) FadeOutIn(d time.Duration) *FadeHandle

func (*Player) IsPlaying

func (p *Player) IsPlaying() bool

func (*Player) Pause

func (p *Player) Pause()

func (*Player) Play

func (p *Player) Play()

func (*Player) Position added in v1.4.72

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

func (*Player) SetVolume

func (p *Player) SetVolume(vol float64)

Jump to

Keyboard shortcuts

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