eo-typewriterjs / EAudioStrategy
Variable: EAudioStrategy
ts
const EAudioStrategy: object;Defined in: core/audio/enums/audio-strategy.enum.ts:9
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:14 |
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:20 |
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:27 |
Description
Sample selection strategy used when an sfx has multiple samples