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: 3 modules, 3 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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