Audio · function
waterLoopBuffer
Water: a slow, dark wash that breathes.
Explained in Your first game.
function waterLoopBuffer(ctx: BaseAudioContext, seconds?: number): AudioBufferimport { waterLoopBuffer } from '@driftengine/audio';Parameters
| Parameter | Type | Description |
|---|---|---|
ctx | BaseAudioContext | |
seconds? | number |
In depth
Nearly all the energy is low, and the swell is the part carrying the meaning — flat filtered noise at this darkness is indistinguishable from a fan.