Skip to main content

getMasterOutput

getMasterOutput(): AudioNode;

Get the master output audio node. This is the final audio node in the sound manager's audio graph, allowing you to connect additional audio processing nodes (e.g., equalizers, analyzers) between it and the destination.

Return TypeDescription
AudioNodeThe master output audio node

Example

// Connect an analyzer to the master output
const analyser = soundManager.getContext().createAnalyser();
soundManager.getMasterOutput().connect(analyser);
analyser.connect(soundManager.getContext().destination);