diff --git a/src/index.js b/src/index.js index 087d250..c7a38e9 100644 --- a/src/index.js +++ b/src/index.js @@ -45,6 +45,14 @@ class AudioPlayer { this.activeSoundPlayers = {}; } + /** + * Get this sprite's input node, so that other objects can route sound through it. + * @return {AudioNode} the AudioNode for this sprite's input + */ + getInputNode () { + return this.effectsNode; + } + /** * Play a sound * @param {string} soundId - the soundId id of a sound file