Bug 944707 - Stop locking when getting the preferred sample rate from the AudioStream. r=kinetik

--HG--
extra : rebase_source : f2b5be30c25d71cfdb259cb5035335fb4e8a415c
Bug 916384 - Stop calling onaudioprocess on the ScriptProcessorNode if it has no inputs and outputs. r=roc

Quoting the spec: "audioprocess events are only dispatched if the
ScriptProcessorNode has at least one input or one output connected".

--HG--
extra : rebase_source : 93881fb4395744dc0adbb6df7ee146ef70ce42d2