mirror of
https://github.com/servo/servo.git
synced 2025-08-16 02:45:36 +01:00
Auto merge of #21712 - Manishearth:analysernode, r=ferjm
Implement AnalyserNode <s>Needs https://github.com/servo/media/pull/127 to land (and a dependency update)</s> r? @ferjm realtimeanalyser-fft-scaling.html, the test that actually checks for some level of FFT correctness, sadly doesn't work since we don't process nodes not connected to the destination. However I locally fixed the test to work differently and it passed. We'll fix the processing model eventually. <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/21712) <!-- Reviewable:end -->
This commit is contained in:
commit
a02c43dc67
19 changed files with 281 additions and 204 deletions
|
@ -32,7 +32,7 @@
|
|||
prefix: prefix,
|
||||
numberOfInputs: 1,
|
||||
numberOfOutputs: 1,
|
||||
channelCount: 1,
|
||||
channelCount: 2,
|
||||
channelCountMode: 'max',
|
||||
channelInterpretation: 'speakers'
|
||||
});
|
||||
|
|
|
@ -27,8 +27,8 @@
|
|||
|
||||
assert_equals(
|
||||
analyser.channelCount,
|
||||
1,
|
||||
"analyser node has 1 input channels by default"
|
||||
2,
|
||||
"analyser node has 2 input channels by default"
|
||||
);
|
||||
assert_equals(
|
||||
analyser.channelCountMode,
|
||||
|
@ -131,8 +131,8 @@
|
|||
var analyser = new AnalyserNode(context);
|
||||
assert_equals(
|
||||
analyser.channelCount,
|
||||
1,
|
||||
"analyser node has 1 input channels by default"
|
||||
2,
|
||||
"analyser node has 2 input channels by default"
|
||||
);
|
||||
assert_equals(
|
||||
analyser.channelCountMode,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue