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 Type | Description |
|---|---|
AudioNode | The 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);