mirror of
https://github.com/scratchfoundation/scratch-audio.git
synced 2025-01-03 11:35:49 -05:00
Merge pull request #64 from LLK/feature/get-audioplayer-input-node
Add a function to get an AudioPlayer’s input node
This commit is contained in:
commit
eb27dcd03a
1 changed files with 8 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue