sound

package
v0.0.0-...-9799baa Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WaitForSoundsToStop

func WaitForSoundsToStop()

Types

type Effect

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

func NewEffect

func NewEffect() *Effect

func (*Effect) ASR

func (osc *Effect) ASR(attack, sustain, release time.Duration) *Effect

func (*Effect) Clone

func (osc *Effect) Clone() *Effect

func (*Effect) Frequency

func (osc *Effect) Frequency(frequency float32) *Effect

func (*Effect) Noise

func (osc *Effect) Noise() *Effect

func (*Effect) Play

func (osc *Effect) Play()

func (*Effect) Read

func (osc *Effect) Read(buf []byte) (n int, err error)

func (*Effect) Sawtooth

func (osc *Effect) Sawtooth() *Effect

func (*Effect) Sine

func (osc *Effect) Sine() *Effect

func (*Effect) Square

func (osc *Effect) Square() *Effect

func (*Effect) Sustain

func (osc *Effect) Sustain(duration time.Duration) *Effect

func (*Effect) Triangle

func (osc *Effect) Triangle() *Effect

func (*Effect) Volume

func (osc *Effect) Volume(amplitude float32) *Effect

Jump to

Keyboard shortcuts

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