working interface to web audio api for both flash and getUserMedia cleaner