toggle menu
Kotlin Wrappers API Reference
js
switch theme
search in API
kotlin-browser
/
web.audio
/
ConstantSourceNode
Constant
Source
Node
open
external
class
ConstantSourceNode
(
context
:
BaseAudioContext
,
options
:
ConstantSourceOptions
=
definedExternally
)
:
AudioScheduledSourceNode
(
source
)
MDN Reference
Members
Constructors
Constant
Source
Node
Link copied to clipboard
constructor
(
context
:
BaseAudioContext
,
options
:
ConstantSourceOptions
=
definedExternally
)
Properties
channel
Count
Link copied to clipboard
var
channelCount
:
Int
MDN Reference
channel
Count
Mode
Link copied to clipboard
var
channelCountMode
:
ChannelCountMode
MDN Reference
channel
Interpretation
Link copied to clipboard
var
channelInterpretation
:
ChannelInterpretation
MDN Reference
context
Link copied to clipboard
val
context
:
BaseAudioContext
MDN Reference
ended
Event
Link copied to clipboard
val
endedEvent
:
EventInstance
<
Event
,
AudioScheduledSourceNode
,
AudioScheduledSourceNode
>
MDN Reference
number
Of
Inputs
Link copied to clipboard
val
numberOfInputs
:
Int
MDN Reference
number
Of
Outputs
Link copied to clipboard
val
numberOfOutputs
:
Int
MDN Reference
offset
Link copied to clipboard
val
offset
:
AudioParam
MDN Reference
onended
Link copied to clipboard
var
onended
:
EventHandler
<
Event
,
AudioScheduledSourceNode
,
AudioScheduledSourceNode
>
?
MDN Reference
Functions
connect
Link copied to clipboard
fun
connect
(
destinationParam
:
AudioParam
,
output
:
Int
=
definedExternally
)
fun
connect
(
destinationNode
:
AudioNode
,
output
:
Int
=
definedExternally
,
input
:
Int
=
definedExternally
)
:
AudioNode
MDN Reference
disconnect
Link copied to clipboard
fun
disconnect
(
)
MDN Reference
fun
disconnect
(
output
:
Int
)
fun
disconnect
(
destinationNode
:
AudioNode
)
fun
disconnect
(
destinationParam
:
AudioParam
)
fun
disconnect
(
destinationNode
:
AudioNode
,
output
:
Int
)
fun
disconnect
(
destinationParam
:
AudioParam
,
output
:
Int
)
fun
disconnect
(
destinationNode
:
AudioNode
,
output
:
Int
,
input
:
Int
)
dispatch
Event
Link copied to clipboard
fun
dispatchEvent
(
event
:
Event
)
:
Boolean
start
Link copied to clipboard
fun
start
(
when
:
Double
=
definedExternally
)
MDN Reference
stop
Link copied to clipboard
fun
stop
(
when
:
Double
=
definedExternally
)
MDN Reference