go2cpp

package
v2.3.2 Latest Latest
Warning

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

Go to latest
Published: May 8, 2022 License: Apache-2.0 Imports: 5 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) Err added in v2.3.0

func (c *Context) Err() error

func (*Context) MaxBufferSize

func (c *Context) MaxBufferSize() int

func (*Context) NewPlayer

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

func (*Context) Resume added in v2.2.0

func (c *Context) Resume() error

func (*Context) Suspend added in v2.2.0

func (c *Context) Suspend() error

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

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