Audio · function

waterLoopBuffer

Water: a slow, dark wash that breathes.

Explained in Your first game.

function waterLoopBuffer(ctx: BaseAudioContext, seconds?: number): AudioBuffer
import { waterLoopBuffer } from '@driftengine/audio';

Parameters

ParameterTypeDescription
ctxBaseAudioContext
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.