Wactorz JS
Preparing search index...
__tests__/setup
MockAudioContext
Class MockAudioContext
Index
Constructors
constructor
Properties
current
Time
destination
state
Methods
close
create
Buffer
Source
create
Gain
create
Oscillator
decode
Audio
Data
resume
Constructors
constructor
new
MockAudioContext
()
:
MockAudioContext
Returns
MockAudioContext
Properties
current
Time
currentTime
:
number
= 0
destination
destination
:
{}
= {}
state
state
:
string
= "running"
Methods
close
close
()
:
Promise
<
void
>
Returns
Promise
<
void
>
create
Buffer
Source
createBufferSource
()
:
{
buffer
:
any
;
connect
:
()
=>
void
;
loop
:
boolean
;
onended
:
any
;
start
:
()
=>
void
;
stop
:
()
=>
void
;
}
Returns
{
buffer
:
any
;
connect
:
()
=>
void
;
loop
:
boolean
;
onended
:
any
;
start
:
()
=>
void
;
stop
:
()
=>
void
;
}
create
Gain
createGain
()
:
{
connect
:
()
=>
void
;
gain
:
{
setTargetAtTime
:
()
=>
void
;
value
:
number
}
;
}
Returns
{
connect
:
()
=>
void
;
gain
:
{
setTargetAtTime
:
()
=>
void
;
value
:
number
}
}
create
Oscillator
createOscillator
()
:
{
connect
:
()
=>
void
;
frequency
:
{
value
:
number
}
;
start
:
()
=>
void
;
stop
:
()
=>
void
;
type
:
OscillatorType
;
}
Returns
{
connect
:
()
=>
void
;
frequency
:
{
value
:
number
}
;
start
:
()
=>
void
;
stop
:
()
=>
void
;
type
:
OscillatorType
;
}
decode
Audio
Data
decodeAudioData
(
_buf
:
ArrayBuffer
)
:
Promise
<
any
>
Parameters
_buf
:
ArrayBuffer
Returns
Promise
<
any
>
resume
resume
()
:
Promise
<
void
>
Returns
Promise
<
void
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Properties
current
Time
destination
state
Methods
close
create
Buffer
Source
create
Gain
create
Oscillator
decode
Audio
Data
resume
Wactorz JS
Loading...