phina.js.d.ts
Preparing search index...
phina
asset
Sound
Interface Sound
interface
Sound
{
context
:
AudioContext
;
gainNode
:
GainNode
;
loadError
:
boolean
;
loop
:
boolean
;
loopEnd
:
number
;
loopStart
:
number
;
notFount
:
boolean
;
playbackRate
:
number
;
serverError
:
boolean
;
volume
:
number
;
addEventListener
(
type
:
string
,
listener
:
Function
)
:
this
;
clear
(
type
:
string
)
:
this
;
clearEventListener
(
type
:
string
)
:
this
;
dispatchEvent
(
e
:
{
type
:
string
}
)
:
this
;
dispatchEventByType
(
type
:
string
,
param
:
object
)
:
this
;
fire
(
e
:
{
type
:
string
}
)
:
this
;
flare
(
type
:
string
,
param
?:
object
)
:
this
;
has
(
type
:
string
)
:
boolean
;
hasEventListener
(
type
:
string
)
:
boolean
;
isLoaded
()
:
boolean
;
load
(
src
:
string
)
:
phina
.
util
.
Flow
<
phina
.
asset
.
Sound
>
;
loadDummy
()
:
void
;
loadFromBuffer
(
buffer
?:
AudioBuffer
)
:
this
;
off
(
type
:
string
,
listener
:
Function
)
:
this
;
on
(
type
:
string
,
listener
:
Function
)
:
this
;
one
(
type
:
string
,
listener
:
Function
)
:
this
;
pause
()
:
this
;
play
(
when
?:
number
,
offset
?:
number
,
duration
?:
number
)
:
this
;
removeEventListener
(
type
:
string
,
listener
:
Function
)
:
this
;
resume
()
:
this
;
setLoop
(
loop
:
boolean
)
:
this
;
setLoopEnd
(
loopEnd
:
number
)
:
this
;
setLoopStart
(
loopStart
:
number
)
:
this
;
setPlaybackRate
(
playbackRate
:
number
)
:
this
;
stop
()
:
this
;
}
Hierarchy (
View Summary
)
phina
.
asset
.
Asset
Sound
Index
Properties
context
gain
Node
load
Error
loop
loop
End
loop
Start
not
Fount
playback
Rate
server
Error
volume
Methods
add
Event
Listener
clear
clear
Event
Listener
dispatch
Event
dispatch
Event
By
Type
fire
flare
has
has
Event
Listener
is
Loaded
load
load
Dummy
load
From
Buffer
off
on
one
pause
play
remove
Event
Listener
resume
set
Loop
set
Loop
End
set
Loop
Start
set
Playback
Rate
stop
Properties
context
context
:
AudioContext
gain
Node
gainNode
:
GainNode
load
Error
loadError
:
boolean
loop
loop
:
boolean
loop
End
loopEnd
:
number
loop
Start
loopStart
:
number
not
Fount
notFount
:
boolean
playback
Rate
playbackRate
:
number
server
Error
serverError
:
boolean
volume
volume
:
number
Methods
add
Event
Listener
addEventListener
(
type
:
string
,
listener
:
Function
)
:
this
Parameters
type
:
string
listener
:
Function
Returns
this
clear
clear
(
type
:
string
)
:
this
Parameters
type
:
string
Returns
this
clear
Event
Listener
clearEventListener
(
type
:
string
)
:
this
Parameters
type
:
string
Returns
this
dispatch
Event
dispatchEvent
(
e
:
{
type
:
string
}
)
:
this
Parameters
e
:
{
type
:
string
}
Returns
this
dispatch
Event
By
Type
dispatchEventByType
(
type
:
string
,
param
:
object
)
:
this
Parameters
type
:
string
param
:
object
Returns
this
fire
fire
(
e
:
{
type
:
string
}
)
:
this
Parameters
e
:
{
type
:
string
}
Returns
this
flare
flare
(
type
:
string
,
param
?:
object
)
:
this
Parameters
type
:
string
Optional
param
:
object
Returns
this
has
has
(
type
:
string
)
:
boolean
Parameters
type
:
string
Returns
boolean
has
Event
Listener
hasEventListener
(
type
:
string
)
:
boolean
Parameters
type
:
string
Returns
boolean
is
Loaded
isLoaded
()
:
boolean
Returns
boolean
load
load
(
src
:
string
)
:
phina
.
util
.
Flow
<
phina
.
asset
.
Sound
>
Parameters
src
:
string
Returns
phina
.
util
.
Flow
<
phina
.
asset
.
Sound
>
load
Dummy
loadDummy
()
:
void
Returns
void
load
From
Buffer
loadFromBuffer
(
buffer
?:
AudioBuffer
)
:
this
Parameters
Optional
buffer
:
AudioBuffer
Returns
this
off
off
(
type
:
string
,
listener
:
Function
)
:
this
Parameters
type
:
string
listener
:
Function
Returns
this
on
on
(
type
:
string
,
listener
:
Function
)
:
this
Parameters
type
:
string
listener
:
Function
Returns
this
one
one
(
type
:
string
,
listener
:
Function
)
:
this
Parameters
type
:
string
listener
:
Function
Returns
this
pause
pause
()
:
this
Returns
this
play
play
(
when
?:
number
,
offset
?:
number
,
duration
?:
number
)
:
this
Parameters
Optional
when
:
number
Optional
offset
:
number
Optional
duration
:
number
Returns
this
remove
Event
Listener
removeEventListener
(
type
:
string
,
listener
:
Function
)
:
this
Parameters
type
:
string
listener
:
Function
Returns
this
resume
resume
()
:
this
Returns
this
set
Loop
setLoop
(
loop
:
boolean
)
:
this
Parameters
loop
:
boolean
Returns
this
set
Loop
End
setLoopEnd
(
loopEnd
:
number
)
:
this
Parameters
loopEnd
:
number
Returns
this
set
Loop
Start
setLoopStart
(
loopStart
:
number
)
:
this
Parameters
loopStart
:
number
Returns
this
set
Playback
Rate
setPlaybackRate
(
playbackRate
:
number
)
:
this
Parameters
playbackRate
:
number
Returns
this
stop
stop
()
:
this
Returns
this
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Properties
context
gain
Node
load
Error
loop
loop
End
loop
Start
not
Fount
playback
Rate
server
Error
volume
Methods
add
Event
Listener
clear
clear
Event
Listener
dispatch
Event
dispatch
Event
By
Type
fire
flare
has
has
Event
Listener
is
Loaded
load
load
Dummy
load
From
Buffer
off
on
one
pause
play
remove
Event
Listener
resume
set
Loop
set
Loop
End
set
Loop
Start
set
Playback
Rate
stop
phina.js.d.ts
Loading...