Added AudioBuffer and optimized array passing.