Optional context: BaseContextOptional cache: ICachePrivate cachePrivate createOptional options: AudioWorkletNodeOptionsPrivate eventPrivate finalizationPrivate loadedPrivate prevPrivate createPrivate createOptional options: MediaStreamSoundOptionsCreates a PannerNode with the specified options.
An object containing the options to use when creating the PannerNode.
A new PannerNode instance with the specified options.
const panner = audio.createPanner({
positionX: 0,
positionY: 0,
positionZ: 0,
orientationX: 0,
orientationY: 0,
orientationZ: 0,
});
Creates a Sound instance from an AudioBuffer or URL.
Optional soundType: SoundTypeType of sound (Buffer, HTML, Streaming)
Optional panType: PanTypeType of panning (HRTF or stereo)
Optional signal: AbortSignalOptional AbortSignal to cancel the operation
Promise that resolves to a Sound instance
Optional signal: AbortSignalOptional signal: AbortSignalOptional options: AudioWorkletNodeOptionsPrivate loadRemove event listener.
Register event listener.
Cleanup function
Internal Renders the offline audio graph to a buffer. Only available when the context has a startRendering method.
Promise that resolves to the rendered AudioBuffer
Error if the context does not support offline rendering
Static createCreates a Cacophony instance backed by an OfflineAudioContext. Use this for rendering, bouncing, precomputing processed output, or non-realtime scenarios.
Offline context configuration (channels, length, sampleRate)
Optional cache: ICacheOptional cache implementation
A Cacophony instance backed by OfflineAudioContext
Returns true if this instance is backed by an offline audio context (i.e., the context has a startRendering method).