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): AmbisonicSoundfieldimport { createAmbisonicSoundfield } from '@driftengine/audio';Parameters
| Parameter | Type | Description |
|---|---|---|
listener | AudioListenerGraph | |
buffer | AudioBuffer | |
options? | AmbisonicOptions |