gen

package
v0.0.0-...-e41b870 Latest Latest
Warning

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

Go to latest
Published: May 30, 2017 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Gen

type Gen interface {
	Fill(b *dac.Buffer)
}

Gen is used to fill a buffer. They should not be shared.

type Sine

type Sine struct {
	Freq  float64
	Phase float64
	// contains filtered or unexported fields
}

Sine is a sine wave osilator

func (*Sine) Fill

func (s *Sine) Fill(b *dac.Buffer)

Fill with the current phase of the oscilator

type Val

type Val float64

func (Val) Fill

func (v Val) Fill(b *dac.Buffer)

Jump to

Keyboard shortcuts

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