readerdriver

package
v2.2.0-alpha.3 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsAvailable

func IsAvailable() bool

Types

type Context

type Context interface {
	NewPlayer(io.Reader) Player
	Suspend() error
	Resume() error
}

func NewContext

func NewContext(sampleRate int, channelNum int, bitDepthInBytes int) (Context, chan struct{}, error)

type Player

type Player interface {
	Pause()
	Play()
	IsPlaying() bool
	Reset()
	Volume() float64
	SetVolume(volume float64)
	UnplayedBufferSize() int
	Err() error
	io.Closer
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL