Class createjs.Sound.FrameAudioPlayer.Frame
Defined in: sound.js.
Constructor Attributes | Constructor Name and Description |
---|---|
An inner class that encapsulates an
|
Method Attributes | Method Name and Description |
---|---|
clone(id, clone, offset, duration, player)
Creates a clone of the specified sound.
|
|
destroy()
Destroys this player.
|
|
handleEvent(event)
|
|
load(id, buffer, player)
Starts loading the specified sound.
|
|
load_(id, buffer)
Loads the specified sound and decodes it.
|
|
play(id, loop, volume)
Starts playing the specified sound.
|
|
setVolume(id, volume)
Changes the volume of the specified sound.
|
|
stop(id)
Stops playing the specified sound.
|
Method Detail
clone(id, clone, offset, duration, player)
Creates a clone of the specified sound.
- Parameters:
- {string} id
- {string} clone
- {number} offset
- {number} duration
- {createjs.Sound.FrameAudioPlayer} player
destroy()
Destroys this player. This player destroys the
handleEvent(event)
- Parameters:
- event
{boolean}
load(id, buffer, player)
Starts loading the specified sound.
- Parameters:
- {string} id
- {ArrayBuffer} buffer
- {createjs.Sound.FrameAudioPlayer} player
- Returns:
- {boolean}
load_(id, buffer)
Loads the specified sound and decodes it.
- Parameters:
- {string} id
- {ArrayBuffer} buffer
play(id, loop, volume)
Starts playing the specified sound.
- Parameters:
- {string} id
- {number} loop
- {number} volume
setVolume(id, volume)
Changes the volume of the specified sound.
- Parameters:
- {string} id
- {number} volume
stop(id)
Stops playing the specified sound.
- Parameters:
- {string} id