control

package
v0.0.0-...-c7366c5 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2025 License: Unlicense Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Control

type Control struct {
	SynthDone chan bool
	// contains filtered or unexported fields
}

func NewControl

func NewControl(logger *log.Logger, config cfg.Config, output chan audio.AudioOutput, autoStop chan bool, closing *bool) (*Control, error)

func (*Control) DecreaseVolume

func (c *Control) DecreaseVolume()

func (*Control) FadeIn

func (c *Control) FadeIn(fadeIn float64)

func (*Control) FadeOut

func (c *Control) FadeOut(fadeOut float64, notifyDone chan bool)

func (*Control) GetVolume

func (c *Control) GetVolume() float64

func (*Control) IncreaseVolume

func (c *Control) IncreaseVolume()

func (*Control) LoadSynth

func (c *Control) LoadSynth(synth s.Synth) error

func (*Control) Start

func (c *Control) Start()

func (*Control) Stop

func (c *Control) Stop(fadeOut float64)

func (*Control) StopSynth

func (c *Control) StopSynth()

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳