The function end() of AudioEngine should be a static function