samplerate

package
v0.0.0-...-b3bab2c Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package samplerate contains a sample rate converter using linear interpolation.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewFilter

func NewFilter(sampleRate int) audio.Filter

NewFilter returns a new sample rate filter to convert into the given sample rate.

Types

type Filter

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

Filter represents the sample rate audio.Filter

func (*Filter) Filter

func (f *Filter) Filter(stream audio.Stream) audio.Stream

Filter implements the Filter method for filters.

Jump to

Keyboard shortcuts

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