Changed to accommodate change in webaudio api.