dfpwm

package
v0.0.0-...-0378288 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const SampleRate = 48000

SampleRate is the expected sample rate used by DFPWM.

Variables

This section is empty.

Functions

func EncodeDFPWM

func EncodeDFPWM(output io.Writer, stream audio.Stream) error

EncodeDFPWM encodes the given stream into output using DFPWM.

func NewDecoder

func NewDecoder(input io.Reader, sampleRate int) audio.Stream

NewDecoder returns a DFPWM decoder that is an audio.Stream.

Types

type Decoder

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

Decoder represents a DFPWM decoder.

func (*Decoder) Read

func (d *Decoder) Read(dst interface{}) (int, error)

func (*Decoder) SampleRate

func (d *Decoder) SampleRate() int

SampleRate returns the sample rate of the stream.

Jump to

Keyboard shortcuts

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