• Loads an audio file and returns a JS2VideoAudio object with optional offset and volume level.

    Parameters

    • params: {
          options?: {
              gain?: number;
              offset?: number;
          };
          url: string;
          video?: any;
      }
      • Optionaloptions?: {
            gain?: number;
            offset?: number;
        }

        Options for audio manipulation.

        • Optionalgain?: number
        • Optionaloffset?: number
      • url: string

        URL of the audio file to load.

      • Optionalvideo?: any

        Optional video object; if provided, uses its src as the audio URL.

    Returns Promise<JS2VideoAudio>

    The loaded and configured audio object.