Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • Loader
    • AudioLoader

Index

Constructors

constructor

Properties

crossOrigin

crossOrigin: string
default

'anonymous'

manager

manager: LoadingManager

path

path: string
default

''

requestHeader

requestHeader: {}
default

{}

Type declaration

  • [header: string]: string

resourcePath

resourcePath: string
default

''

withCredentials

withCredentials: boolean
default:

false

Methods

load

  • load(url: string, onLoad: any, onProgress: any, onError: any): void

loadAsync

  • loadAsync(url: string, onProgress?: (event: ProgressEvent<EventTarget>) => void): Promise<any>
  • Parameters

    • url: string
    • Optional onProgress: (event: ProgressEvent<EventTarget>) => void
        • (event: ProgressEvent<EventTarget>): void
        • Parameters

          • event: ProgressEvent<EventTarget>

          Returns void

    Returns Promise<any>

setCrossOrigin

  • Parameters

    • crossOrigin: string

    Returns AudioLoader

setPath

  • Parameters

    • path: string

    Returns AudioLoader

setRequestHeader

  • Parameters

    • requestHeader: {}
      • [header: string]: string

    Returns AudioLoader

setResourcePath

  • Parameters

    • resourcePath: string

    Returns AudioLoader

setWithCredentials

  • Parameters

    • value: boolean

    Returns AudioLoader

Generated using TypeDoc