Audio · function

createAmbisonicSoundfield

Build a soundfield and place it around the listener. The shape createSpatialSource sets.

Explained in Your first game.

function createAmbisonicSoundfield(listener: AudioListenerGraph, buffer: AudioBuffer, options?: AmbisonicOptions): AmbisonicSoundfield
import { createAmbisonicSoundfield } from '@driftengine/audio';

Parameters

ParameterTypeDescription
listenerAudioListenerGraph
bufferAudioBuffer
options?AmbisonicOptions