mwg API
Reference
Overview
Examples
Examples index
Getting started
Design
FAQ
Preparing search index...
index
Audio
SampleDecodingContext
Interface SampleDecodingContext
the slice of
OfflineAudioContext
the decoder uses, so a test can stand in for it
interface
SampleDecodingContext
{
decodeAudioData
(
data
:
ArrayBuffer
,
)
:
Promise
<
{
length
:
number
;
sampleRate
:
number
;
getChannelData
(
channel
:
number
)
:
Float32Array
;
}
,
>
;
}
Index
Methods
decode
Audio
Data
Methods
decode
Audio
Data
decodeAudioData
(
data
:
ArrayBuffer
,
)
:
Promise
<
{
length
:
number
;
sampleRate
:
number
;
getChannelData
(
channel
:
number
)
:
Float32Array
;
}
,
>
Parameters
data
:
ArrayBuffer
Returns
Promise
<
{
length
:
number
;
sampleRate
:
number
;
getChannelData
(
channel
:
number
)
:
Float32Array
;
}
,
>
Settings
Member Visibility
Protected
Inherited
Theme
OS
Light
Dark
On This Page
Methods
decode
Audio
Data
Reference
Overview
Examples
Examples index
Getting started
Design
FAQ
mwg API
Loading...
the slice of
OfflineAudioContextthe decoder uses, so a test can stand in for it