API Documentation for: 0.6.0
Show:

SoundLoader Class

Defined in: SoundLoader:41
Module: PreloadJS

A loader for HTML audio files. PreloadJS can not load WebAudio files, as a WebAudio context is required, which should be created by either a library playing the sound (such as SoundJS, or an external framework that handles audio playback. To load content that can be played by WebAudio, use the BinaryLoader, and handle the audio context decoding manually.

Constructor

SoundLoader

(
  • loadItem
  • preferXHR
)

Defined in SoundLoader:41

Parameters:

Item Index

Methods

Methods

canLoadItem

(
  • item
)
Boolean static

Defined in canLoadItem:72

Determines if the loader can load a specific item. This loader can only load items that are of type SOUND.

Parameters:

  • item LoadItem | Object

    The LoadItem that a LoadQueue is trying to load.

Returns:

Boolean:

Whether the loader can load the item.