Audio · function

createListener

The listener for a console. One per mix; everything placed in the world reads it.

Explained in Your first game.

function createListener(mix: MixConsole): AudioListenerGraph
import { createListener } from '@driftengine/audio';

Parameters

ParameterTypeDescription
mixMixConsole