Search
Preparing search index...
The search index is not available
DefinitelyTyped
Inherited
Private
Externals
Only exported
createjs
SoundInstance
Class SoundInstance
Hierarchy
createjs.EventDispatcher
SoundInstance
Index
Constructor methods
constructor
Properties
gainNode
pan
panNode
playState
sourceNode
src
uniqueId
volume
Methods
addEventListener
dispatchEvent
getDuration
getMute
getPan
getPosition
getVolume
hasEventListener
off
on
pause
play
removeAllEventListeners
removeEventListener
resume
setMute
setPan
setPosition
setVolume
stop
toString
willTrigger
Constructor methods
constructor
(
src
:
string
, owner
:
Object
)
:
SoundInstance
Parameters
src:
string
owner:
Object
Returns
SoundInstance
Properties
public
gainNode
:
any
public
pan
:
number
public
panNode
:
any
public
playState
:
string
public
sourceNode
:
any
public
src
:
string
public
uniqueId
:
any
public
volume
:
number
Methods
public
addEventListener
(
type
:
string
, listener
:
(eventObj: Object) => boolean
, useCapture
?:
boolean
)
:
Function
Parameters
type:
string
listener:
(eventObj: Object) => boolean
useCapture?:
boolean
optional
Returns
Function
public
addEventListener
(
type
:
string
, listener
:
(eventObj: Object) => void
, useCapture
?:
boolean
)
:
Function
Parameters
type:
string
listener:
(eventObj: Object) => void
useCapture?:
boolean
optional
Returns
Function
public
addEventListener
(
type
:
string
, listener
:
{ handleEvent: (eventObj: Object) => boolean; }
, useCapture
?:
boolean
)
:
Object
Parameters
type:
string
listener:
{ handleEvent: (eventObj: Object) => boolean; }
useCapture?:
boolean
optional
Returns
Object
public
addEventListener
(
type
:
string
, listener
:
{ handleEvent: (eventObj: Object) => void; }
, useCapture
?:
boolean
)
:
Object
Parameters
type:
string
listener:
{ handleEvent: (eventObj: Object) => void; }
useCapture?:
boolean
optional
Returns
Object
public
dispatchEvent
(
eventObj
:
Object
, target
?:
Object
)
:
boolean
Parameters
eventObj:
Object
target?:
Object
optional
Returns
boolean
public
dispatchEvent
(
eventObj
:
string
, target
?:
Object
)
:
boolean
Parameters
eventObj:
string
target?:
Object
optional
Returns
boolean
public
dispatchEvent
(
eventObj
:
createjs.Event
, target
?:
Object
)
:
boolean
Parameters
eventObj:
createjs.Event
target?:
Object
optional
Returns
boolean
public
getDuration
(
)
:
number
Returns
number
public
getMute
(
)
:
boolean
Returns
boolean
public
getPan
(
)
:
number
Returns
number
public
getPosition
(
)
:
number
Returns
number
public
getVolume
(
)
:
number
Returns
number
public
hasEventListener
(
type
:
string
)
:
boolean
Parameters
type:
string
Returns
boolean
public
off
(
type
:
string
, listener
:
(eventObj: Object) => boolean
, useCapture
?:
boolean
)
Parameters
type:
string
listener:
(eventObj: Object) => boolean
useCapture?:
boolean
optional
public
off
(
type
:
string
, listener
:
(eventObj: Object) => void
, useCapture
?:
boolean
)
Parameters
type:
string
listener:
(eventObj: Object) => void
useCapture?:
boolean
optional
public
off
(
type
:
string
, listener
:
{ handleEvent: (eventObj: Object) => boolean; }
, useCapture
?:
boolean
)
Parameters
type:
string
listener:
{ handleEvent: (eventObj: Object) => boolean; }
useCapture?:
boolean
optional
public
off
(
type
:
string
, listener
:
{ handleEvent: (eventObj: Object) => void; }
, useCapture
?:
boolean
)
Parameters
type:
string
listener:
{ handleEvent: (eventObj: Object) => void; }
useCapture?:
boolean
optional
public
off
(
type
:
string
, listener
:
Function
, useCapture
?:
boolean
)
Parameters
type:
string
listener:
Function
useCapture?:
boolean
optional
public
on
(
type
:
string
, listener
:
(eventObj: Object) => boolean
, scope
?:
Object
, once
?:
boolean
, data
?:
any
, useCapture
?:
boolean
)
:
Function
Parameters
type:
string
listener:
(eventObj: Object) => boolean
scope?:
Object
optional
once?:
boolean
optional
data?:
any
optional
useCapture?:
boolean
optional
Returns
Function
public
on
(
type
:
string
, listener
:
(eventObj: Object) => void
, scope
?:
Object
, once
?:
boolean
, data
?:
any
, useCapture
?:
boolean
)
:
Function
Parameters
type:
string
listener:
(eventObj: Object) => void
scope?:
Object
optional
once?:
boolean
optional
data?:
any
optional
useCapture?:
boolean
optional
Returns
Function
public
on
(
type
:
string
, listener
:
{ handleEvent: (eventObj: Object) => boolean; }
, scope
?:
Object
, once
?:
boolean
, data
?:
any
, useCapture
?:
boolean
)
:
Object
Parameters
type:
string
listener:
{ handleEvent: (eventObj: Object) => boolean; }
scope?:
Object
optional
once?:
boolean
optional
data?:
any
optional
useCapture?:
boolean
optional
Returns
Object
public
on
(
type
:
string
, listener
:
{ handleEvent: (eventObj: Object) => void; }
, scope
?:
Object
, once
?:
boolean
, data
?:
any
, useCapture
?:
boolean
)
:
Object
Parameters
type:
string
listener:
{ handleEvent: (eventObj: Object) => void; }
scope?:
Object
optional
once?:
boolean
optional
data?:
any
optional
useCapture?:
boolean
optional
Returns
Object
public
pause
(
)
:
boolean
Returns
boolean
public
play
(
interrupt
?:
string
, delay
?:
number
, offset
?:
number
, loop
?:
number
, volume
?:
number
, pan
?:
number
)
Parameters
interrupt?:
string
optional
delay?:
number
optional
offset?:
number
optional
loop?:
number
optional
volume?:
number
optional
pan?:
number
optional
public
play
(
interrupt
?:
Object
, delay
?:
number
, offset
?:
number
, loop
?:
number
, volume
?:
number
, pan
?:
number
)
Parameters
interrupt?:
Object
optional
delay?:
number
optional
offset?:
number
optional
loop?:
number
optional
volume?:
number
optional
pan?:
number
optional
public
removeAllEventListeners
(
type
?:
string
)
Parameters
type?:
string
optional
public
removeEventListener
(
type
:
string
, listener
:
(eventObj: Object) => boolean
, useCapture
?:
boolean
)
Parameters
type:
string
listener:
(eventObj: Object) => boolean
useCapture?:
boolean
optional
public
removeEventListener
(
type
:
string
, listener
:
(eventObj: Object) => void
, useCapture
?:
boolean
)
Parameters
type:
string
listener:
(eventObj: Object) => void
useCapture?:
boolean
optional
public
removeEventListener
(
type
:
string
, listener
:
{ handleEvent: (eventObj: Object) => boolean; }
, useCapture
?:
boolean
)
Parameters
type:
string
listener:
{ handleEvent: (eventObj: Object) => boolean; }
useCapture?:
boolean
optional
public
removeEventListener
(
type
:
string
, listener
:
{ handleEvent: (eventObj: Object) => void; }
, useCapture
?:
boolean
)
Parameters
type:
string
listener:
{ handleEvent: (eventObj: Object) => void; }
useCapture?:
boolean
optional
public
removeEventListener
(
type
:
string
, listener
:
Function
, useCapture
?:
boolean
)
Parameters
type:
string
listener:
Function
useCapture?:
boolean
optional
public
resume
(
)
:
boolean
Returns
boolean
public
setMute
(
value
:
boolean
)
:
boolean
Parameters
value:
boolean
Returns
boolean
public
setPan
(
value
:
number
)
:
number
Parameters
value:
number
Returns
number
public
setPosition
(
value
:
number
)
Parameters
value:
number
public
setVolume
(
value
:
number
)
:
boolean
Parameters
value:
number
Returns
boolean
public
stop
(
)
:
boolean
Returns
boolean
public
toString
(
)
:
string
Returns
string
public
willTrigger
(
type
:
string
)
:
boolean
Parameters
type:
string
Returns
boolean
Globals
createjs
FlashPlugin
HTMLAudioPlugin
Sound
SoundInstance
constructor
gainNode
pan
panNode
playState
sourceNode
src
uniqueId
volume
addEventListener
dispatchEvent
getDuration
getMute
getPan
getPosition
getVolume
hasEventListener
off
on
pause
play
removeAllEventListeners
removeEventListener
resume
setMute
setPan
setPosition
setVolume
stop
toString
willTrigger
SoundJS
WebAudioPlugin