API reference
Every public class, method, and event in @codexo/exojs. Generated from source.
interfaceAudioGeneratorOptions
@codexo/exojs / audio / stable
Construction options for AudioGenerator.
9
props
0
methods
0
events
Import
import { AudioGeneratorOptions } from '@codexo/exojs'Construction options for AudioGenerator.
Properties9
detune?: numberPitch detune in cents. Default 0.
Optional ADSR envelope. Default null (no envelope).
frequency?: numberOscillator frequency in Hz. Default 440 (A4).
muted?: booleanDefault muted flag (starts a voice at volume 0). Default false.
poolSize?: numberMaximum concurrent voices. Default 8.
Eviction strategy when the pool is full. Default FirstInFirstOut.
priority?: numberPriority for the LowestPriority strategy. Default 0.
type?: OscillatorTypeOscillator waveform. Default 'sine'.
volume?: numberDefault volume applied to new voices. Range [0, 1]. Default 1.
Source