Versions in this module Expand all Collapse all v2 v2.0.7 Mar 14, 2021 Changes in this version + type Context struct — js/wasm + func NewContext(sampleRate int, channelNum, bitDepthInBytes int) *Context + func (c *Context) Close() error + func (c *Context) NewPlayer(r io.Reader) *Player + type Player struct — js/wasm + func (p *Player) Close() error + func (p *Player) IsPlaying() bool + func (p *Player) Pause() + func (p *Player) Play() + func (p *Player) Reset() + func (p *Player) SetVolume(volume float64) + func (p *Player) UnplayedBufferSize() int64 + func (p *Player) Volume() float64