| OLD | NEW |
| 1 library dart.dom.web_audio; | 1 library dart.dom.web_audio; |
| 2 | 2 |
| 3 import 'dart:async'; | 3 import 'dart:async'; |
| 4 import 'dart:collection'; | 4 import 'dart:collection'; |
| 5 import 'dart:_collection-dev'; | 5 import 'dart:_collection-dev'; |
| 6 import 'dart:html'; | 6 import 'dart:html'; |
| 7 import 'dart:html_common'; | 7 import 'dart:html_common'; |
| 8 import 'dart:typed_data'; | 8 import 'dart:typed_data'; |
| 9 import 'dart:_js_helper' show Creates, JSName, Returns, convertDartClosureToJS; | 9 import 'dart:_js_helper' show Creates, JSName, Returns, convertDartClosureToJS; |
| 10 import 'dart:_foreign_helper' show JS; | 10 import 'dart:_foreign_helper' show JS; |
| (...skipping 322 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 333 GainNode createGain() { | 333 GainNode createGain() { |
| 334 if (JS('bool', '#.createGain !== undefined', this)) { | 334 if (JS('bool', '#.createGain !== undefined', this)) { |
| 335 return JS('GainNode', '#.createGain()', this); | 335 return JS('GainNode', '#.createGain()', this); |
| 336 } else { | 336 } else { |
| 337 return JS('GainNode', '#.createGainNode()', this); | 337 return JS('GainNode', '#.createGainNode()', this); |
| 338 } | 338 } |
| 339 } | 339 } |
| 340 | 340 |
| 341 ScriptProcessorNode createScriptProcessor(int bufferSize, | 341 ScriptProcessorNode createScriptProcessor(int bufferSize, |
| 342 [int numberOfInputChannels, int numberOfOutputChannels]) { | 342 [int numberOfInputChannels, int numberOfOutputChannels]) { |
| 343 var function = JS('dynamic', '#.createScriptProcessor || ' | 343 var function = JS('=Object', '#.createScriptProcessor || ' |
| 344 '#.createJavaScriptNode', this, this); | 344 '#.createJavaScriptNode', this, this); |
| 345 if (numberOfOutputChannels != null) { | 345 if (numberOfOutputChannels != null) { |
| 346 return JS('ScriptProcessorNode', '#.call(#, #, #, #)', function, this, | 346 return JS('ScriptProcessorNode', '#.call(#, #, #, #)', function, this, |
| 347 bufferSize, numberOfInputChannels, numberOfOutputChannels); | 347 bufferSize, numberOfInputChannels, numberOfOutputChannels); |
| 348 } else if (numberOfInputChannels != null) { | 348 } else if (numberOfInputChannels != null) { |
| 349 return JS('ScriptProcessorNode', '#.call(#, #, #)', function, this, | 349 return JS('ScriptProcessorNode', '#.call(#, #, #)', function, this, |
| 350 bufferSize, numberOfInputChannels); | 350 bufferSize, numberOfInputChannels); |
| 351 } else { | 351 } else { |
| 352 return JS('ScriptProcessorNode', '#.call(#, #)', function, this, | 352 return JS('ScriptProcessorNode', '#.call(#, #)', function, this, |
| 353 bufferSize); | 353 bufferSize); |
| (...skipping 703 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1057 // for details. All rights reserved. Use of this source code is governed by a | 1057 // for details. All rights reserved. Use of this source code is governed by a |
| 1058 // BSD-style license that can be found in the LICENSE file. | 1058 // BSD-style license that can be found in the LICENSE file. |
| 1059 | 1059 |
| 1060 | 1060 |
| 1061 @DocsEditable | 1061 @DocsEditable |
| 1062 @DomName('WaveTable') | 1062 @DomName('WaveTable') |
| 1063 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#WaveTab
le-section | 1063 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#WaveTab
le-section |
| 1064 @Experimental | 1064 @Experimental |
| 1065 class WaveTable native "WaveTable" { | 1065 class WaveTable native "WaveTable" { |
| 1066 } | 1066 } |
| OLD | NEW |