audiowrap

package
v1.4.33 Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2023 License: Apache-2.0 Imports: 10 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) Current

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

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