Audio · function

masterFilterInsert

The master low-pass: everything the player hears, including the world's own sound.

Explained in Your first game.

function masterFilterInsert(context: BaseAudioContext, scheduleAt: ScheduleClock): MasterFilterInsert
import { masterFilterInsert } from '@driftengine/audio';

Parameters

ParameterTypeDescription
contextBaseAudioContext
scheduleAtScheduleClock

In depth

Deliberately across the whole mix rather than the score alone — going under water muffles the world, not only the music.