buffer

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2025 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CalcSampleLength

func CalcSampleLength(sampleRate uint, durationMS uint) uint

CalcSampleLength returns how many samples are in the specified duration

func FillBuffer

func FillBuffer(buffer []float64, gen generator.Generator) []float64

FillBuffer generate samples into the provided buffer to fill it up

func Generate

func Generate(durationMS uint, gen generator.Generator) []float64

Generate will create a buffer that's large enough to hold a sample of desired size and generates the sample into it.

Types

This section is empty.

Jump to

Keyboard shortcuts

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