fixed #1829 The function end() of AudioEngine should be a static functio...

...n