| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2010, Google Inc. All rights reserved. | 2 * Copyright (C) 2010, Google Inc. All rights reserved. |
| 3 * Copyright (C) 2011 Apple Inc. All rights reserved. | 3 * Copyright (C) 2011 Apple Inc. All rights reserved. |
| 4 * | 4 * |
| 5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
| 6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
| 7 * are met: | 7 * are met: |
| 8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
| (...skipping 18 matching lines...) Expand all Loading... |
| 29 Constructor, | 29 Constructor, |
| 30 Constructor(unsigned long numberOfChannels, unsigned long numberOfFrames, fl
oat sampleRate), | 30 Constructor(unsigned long numberOfChannels, unsigned long numberOfFrames, fl
oat sampleRate), |
| 31 ConstructorCallWith=Document, | 31 ConstructorCallWith=Document, |
| 32 NoInterfaceObject, | 32 NoInterfaceObject, |
| 33 RaisesException=Constructor, | 33 RaisesException=Constructor, |
| 34 ] interface AudioContext : EventTarget { | 34 ] interface AudioContext : EventTarget { |
| 35 // All rendered audio ultimately connects to destination, which represents t
he audio hardware. | 35 // All rendered audio ultimately connects to destination, which represents t
he audio hardware. |
| 36 readonly attribute AudioDestinationNode destination; | 36 readonly attribute AudioDestinationNode destination; |
| 37 | 37 |
| 38 // All scheduled times are relative to this time in seconds. | 38 // All scheduled times are relative to this time in seconds. |
| 39 readonly attribute float currentTime; | 39 readonly attribute double currentTime; |
| 40 | 40 |
| 41 // All AudioNodes in the context run at this sample-rate (sample-frames per
second). | 41 // All AudioNodes in the context run at this sample-rate (sample-frames per
second). |
| 42 readonly attribute float sampleRate; | 42 readonly attribute float sampleRate; |
| 43 | 43 |
| 44 // All panning is relative to this listener. | 44 // All panning is relative to this listener. |
| 45 readonly attribute AudioListener listener; | 45 readonly attribute AudioListener listener; |
| 46 | 46 |
| 47 // Number of AudioBufferSourceNodes that are currently playing. | 47 // Number of AudioBufferSourceNodes that are currently playing. |
| 48 readonly attribute unsigned long activeSourceCount; | 48 readonly attribute unsigned long activeSourceCount; |
| 49 | 49 |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 82 // void prepareOfflineBufferRendering(unsigned long numberOfChannels, unsign
ed long numberOfFrames, float sampleRate); | 82 // void prepareOfflineBufferRendering(unsigned long numberOfChannels, unsign
ed long numberOfFrames, float sampleRate); |
| 83 attribute EventHandler oncomplete; | 83 attribute EventHandler oncomplete; |
| 84 void startRendering(); | 84 void startRendering(); |
| 85 | 85 |
| 86 [MeasureAs=LegacyWebAudio, ImplementedAs=createGain] GainNode createGainNode
(); | 86 [MeasureAs=LegacyWebAudio, ImplementedAs=createGain] GainNode createGainNode
(); |
| 87 [MeasureAs=LegacyWebAudio, ImplementedAs=createDelay, RaisesException] Delay
Node createDelayNode(optional double maxDelayTime); | 87 [MeasureAs=LegacyWebAudio, ImplementedAs=createDelay, RaisesException] Delay
Node createDelayNode(optional double maxDelayTime); |
| 88 | 88 |
| 89 [MeasureAs=LegacyWebAudio, ImplementedAs=createScriptProcessor, RaisesExcept
ion] ScriptProcessorNode createJavaScriptNode(unsigned long bufferSize, optional
unsigned long numberOfInputChannels, optional unsigned long numberOfOutputChann
els); | 89 [MeasureAs=LegacyWebAudio, ImplementedAs=createScriptProcessor, RaisesExcept
ion] ScriptProcessorNode createJavaScriptNode(unsigned long bufferSize, optional
unsigned long numberOfInputChannels, optional unsigned long numberOfOutputChann
els); |
| 90 | 90 |
| 91 }; | 91 }; |
| OLD | NEW |