Skip to content

EZ Web Audio / StealStrategy

Type Alias: StealStrategy

StealStrategy = "lru" | "oldest-active" | "quietest"

Defined in: packages/core/src/poly-synth.ts:20

Voice stealing strategy when the voice pool is full.

  • 'lru': Steal oldest-released voice first, then oldest-active if no released voices (default)
  • 'oldest-active': Always steal the voice that started playing earliest
  • 'quietest': Steal the voice with the lowest current gain