Rewrite waitUntilAudioHasLoaded() to correct max call stack error.