eo-typewriterjs / EAudioStrategy
Variable: EAudioStrategy
ts
const EAudioStrategy: object;Defined in: core/audio/enums/audio-strategy.enum.ts:5
Type Declaration
| Name | Type | Default value | Description | Defined in |
|---|---|---|---|---|
RANDOM | "random" | "random" | Description Pick a sample at random on every play | core/audio/enums/audio-strategy.enum.ts:10 |
ROUND_ROBIN | "roundRobin" | "roundRobin" | Description Cycle through samples in order, looping back to the first after the last | core/audio/enums/audio-strategy.enum.ts:16 |
SHUFFLE_BAG | "shuffleBag" | "shuffleBag" | Description Shuffle all samples into a bag and drain it before re-shuffling. Avoids repetitive streaks that plain random can produce. | core/audio/enums/audio-strategy.enum.ts:23 |
Description
Sample selection strategy used when an sfx has multiple samples