The event handler was defined to take an argument of generic type Event:
this loses the audio event specific type info as defined in the (unused)
AudioProcessingEvent interface.
This patch declares the onaudioprocessing event handler as accepting an
argument of the correct type.