wav

package
v0.0.0-...-e1c21c9 Latest Latest
Warning

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

Go to latest
Published: May 10, 2019 License: Zlib Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Decoder

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

* impl:

type Decoder interface {
	FullDecode() (d []byte, numChan, freq int32, err error)

	Decode() int
	NumOfChan() int
	BitDepth() int
	SampleRate() int32
	Static() []byte
	ReachEnd() bool
}

func NewDecoder

func NewDecoder(name string) (d *Decoder, err error)

func (*Decoder) BitDepth

func (d *Decoder) BitDepth() int32

func (*Decoder) Buffer

func (d *Decoder) Buffer() []byte

func (*Decoder) Close

func (d *Decoder) Close()

func (*Decoder) Decode

func (d *Decoder) Decode() (decoded int)

streamed from disc

func (*Decoder) FullDecode

func (*Decoder) FullDecode(file res.File) (data []byte, numChan, bitDepth, freq int32, err error)

DON'T change decoder state! pure-virtual function

func (*Decoder) NumOfChan

func (d *Decoder) NumOfChan() int32

func (*Decoder) ReachEnd

func (d *Decoder) ReachEnd() bool

func (*Decoder) Rewind

func (d *Decoder) Rewind()

func (*Decoder) SampleRate

func (d *Decoder) SampleRate() int32

Jump to

Keyboard shortcuts

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