moved audio context functions