go2cpp

package
v2.1.1 Latest Latest
Warning

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

Go to latest
Published: May 13, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Rendered for js/wasm

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Context

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

func NewContext

func NewContext(sampleRate int, channelNum, bitDepthInBytes int) *Context

func (*Context) Close

func (c *Context) Close() error

func (*Context) MaxBufferSize

func (c *Context) MaxBufferSize() int

func (*Context) NewPlayer

func (c *Context) NewPlayer(r io.Reader) *Player

type Player

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

func (*Player) Close

func (p *Player) Close() error

func (*Player) Err

func (p *Player) Err() error

func (*Player) IsPlaying

func (p *Player) IsPlaying() bool

func (*Player) Pause

func (p *Player) Pause()

func (*Player) Play

func (p *Player) Play()

func (*Player) Reset

func (p *Player) Reset()

func (*Player) SetVolume

func (p *Player) SetVolume(volume float64)

func (*Player) UnplayedBufferSize

func (p *Player) UnplayedBufferSize() int64

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