• Asynchronously loads a AudioBuffer with the specified src, and resolves once the audio has been loaded.

    Parameters

    • audioContext: AudioContext

      The audioContext to load the audio within.

    • source: string

      The src for the audio to load.

    Returns Promise<AudioBuffer>

    The loaded audio buffer.