audiowrap

package
v1.0.0-beta.28 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2021 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 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

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) Current

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

func (*Player) FadeOutIn

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

func (*Player) IsPlaying

func (p *Player) IsPlaying() bool

func (*Player) Pause

func (p *Player) Pause()

func (*Player) Play

func (p *Player) Play()

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