| Index: sdk/lib/html/templates/html/impl/impl_AudioContext.darttemplate
|
| diff --git a/sdk/lib/html/templates/html/impl/impl_AudioContext.darttemplate b/sdk/lib/html/templates/html/impl/impl_AudioContext.darttemplate
|
| index b648c9c9056dfca1e70ff2ce63b8d4123b2d6a73..d72f80082312eea3515ee895478e28ca2799b73f 100644
|
| --- a/sdk/lib/html/templates/html/impl/impl_AudioContext.darttemplate
|
| +++ b/sdk/lib/html/templates/html/impl/impl_AudioContext.darttemplate
|
| @@ -5,7 +5,18 @@
|
| part of html;
|
|
|
| class $CLASSNAME$EXTENDS$IMPLEMENTS$NATIVESPEC {
|
| - factory $CLASSNAME() => _$(CLASSNAME)FactoryProvider.create$CLASSNAME();
|
| +$if DART2JS
|
| + factory AudioContext() => JS('AudioContext',
|
| + 'new (window.AudioContext || window.webkitAudioContext)()');
|
| +$else
|
| + factory AudioContext() => _createAudioContext();
|
| +
|
| + static _createAudioContext([int numberOfChannels,
|
| + int numberOfFrames,
|
| + int sampleRate])
|
| + native "AudioContext_constructor_Callback";
|
| +$endif
|
| +
|
| $!MEMBERS
|
| $if DART2JS
|
| GainNode createGain() {
|
|
|