Fix AudioContext not define reference error.
Set window function length and type at instantiation.
Fix var shadowing.
Fix undefined stream.