resampler

package
v0.0.0-...-88a2be6 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2017 License: MIT Imports: 1 Imported by: 1

Documentation

Overview

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

Constants

This section is empty.

Variables

This section is empty.

Functions

func Resample32

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

func Resample64

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

Types

type Resampler

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

func New

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

func NewWithSkipZeros

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

func (*Resampler) InputLatency

func (r *Resampler) InputLatency() int

func (*Resampler) OutputLatency

func (r *Resampler) OutputLatency() int

func (*Resampler) ProcessFloat32

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

func (*Resampler) ProcessFloat64

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

Jump to

Keyboard shortcuts

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