Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Generator ¶
type Generator interface { // Name returns the name of the generator Name() string // Active returns whether this generator is active or not Active() binding.Bool // Channels returns a Bit array of the channels this generator outputs Channels() binding.IntList // Parameters() []base.NamedParameter // FillBuffer is called by the generator engine // with a valid buffer. The generator should fill this buffer according // to internal generator logic. // Modulation argument specifies aggregated modulators output. // Internal generator logic should decide what parameters to modulate. // Modulation argument may be nil. // Length, Channel count and Sample Rate of buf and modulations will // always be the same. FillBuffer(buf system.SampleBuffer[float64], modulation system.SampleBuffer[float64]) // Reset will be called after every generator start. Reset() }
Generator represents every generator
Click to show internal directories.
Click to hide internal directories.