audio: github.com/oov/audio/resampler Index | Files

package resampler

import "github.com/oov/audio/resampler"

Package resampler implements audio resampler.

This is a port of the Opus-tools( http://git.xiph.org/?p=opus-tools.git ) audio resampler to the pure Go.

Index

Package Files

quality.go resampler.go

func Resample32 Uses

func Resample32(in []float32, inSampleRate int, out []float32, outSampleRate int, quality int) (read int, written int)

func Resample64 Uses

func Resample64(in []float64, inSampleRate int, out []float64, outSampleRate int, quality int) (read int, written int)

type Resampler Uses

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

func New Uses

func New(channels int, inSampleRate, outSampleRate int, quality int) *Resampler

func NewWithSkipZeros Uses

func NewWithSkipZeros(channels int, inSampleRate, outSampleRate int, quality int) *Resampler

func (*Resampler) InputLatency Uses

func (r *Resampler) InputLatency() int

func (*Resampler) OutputLatency Uses

func (r *Resampler) OutputLatency() int

func (*Resampler) ProcessFloat32 Uses

func (r *Resampler) ProcessFloat32(channelIndex int, in []float32, out []float32) (read int, written int)

func (*Resampler) ProcessFloat64 Uses

func (r *Resampler) ProcessFloat64(channelIndex int, in []float64, out []float64) (read int, written int)

Package resampler imports 1 packages (graph). Updated 2016-07-26. Refresh now. Tools for package owners.