Merge pull request #1 from notthetup/master
Removes input when it's finished.
This commit is contained in:
commit
46a25d4dd5
@ -87,6 +87,10 @@ Mixer.prototype.input = function (args) {
|
|||||||
sampleRate: args.sampleRate || this.sampleRate
|
sampleRate: args.sampleRate || this.sampleRate
|
||||||
});
|
});
|
||||||
this.inputs.push(input);
|
this.inputs.push(input);
|
||||||
|
|
||||||
|
input.on('finish', () =>{
|
||||||
|
this.inputs.splice(this.inputs.indexOf(input), 1);
|
||||||
|
});
|
||||||
|
|
||||||
return input;
|
return input;
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user