Audio · function

fireLoopBuffer

Fire: a broadband hiss with sparks over it.

Explained in Your first game.

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

Parameters

ParameterTypeDescription
ctxBaseAudioContext
seconds?number

In depth

The hiss alone reads as static; the sparks are what make it fire, and they have to be irregular — anything periodic turns a hearth into a machine.