Basic Audio Engine refactoring