Documentation ¶
Overview ¶
The audioengine package creates a portaudio stream and synthesises audio samples into the stream using Voices it receives.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ControlVoices ¶
func ControlVoices(waitGroup *sync.WaitGroup, voiceReceiveChan chan SynthVoice, sampleRate float64, voiceLimit int)
ControlVoices receives voices from the voiceReceiveChan and stages them for activation by the voice controller. It also implements voice stealing by marking the oldest voice for death if a maximum number of activated voices is exceeded.
Types ¶
type SynthVoice ¶
type VoiceController ¶
VoiceController provides a portaudio output stream and attributes for keeping track of currently enabled voices.
Click to show internal directories.
Click to hide internal directories.