Throw on out-of-bounds channelCount in AudioNodes

This commit is contained in:
Manish Goregaokar 2018-09-03 20:30:06 +05:30
parent 0ac861ca94
commit 28c21421ca
9 changed files with 44 additions and 38 deletions

View file

@ -49,7 +49,7 @@ impl ChannelMergerNode {
&node_options,
options.numberOfInputs, // inputs
1, // outputs
);
)?;
Ok(ChannelMergerNode {
node,
})