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 30 matching lines...) Expand all Loading... |
41 // All panning is relative to this listener. | 41 // All panning is relative to this listener. |
42 readonly attribute AudioListener listener; | 42 readonly attribute AudioListener listener; |
43 | 43 |
44 // Number of AudioBufferSourceNodes that are currently playing. | 44 // Number of AudioBufferSourceNodes that are currently playing. |
45 readonly attribute unsigned long activeSourceCount; | 45 readonly attribute unsigned long activeSourceCount; |
46 | 46 |
47 [RaisesException] AudioBuffer createBuffer(unsigned long numberOfChannels, u
nsigned long numberOfFrames, float sampleRate); | 47 [RaisesException] AudioBuffer createBuffer(unsigned long numberOfChannels, u
nsigned long numberOfFrames, float sampleRate); |
48 [RaisesException] AudioBuffer createBuffer(ArrayBuffer? buffer, boolean mixT
oMono); | 48 [RaisesException] AudioBuffer createBuffer(ArrayBuffer? buffer, boolean mixT
oMono); |
49 | 49 |
50 // Asynchronous audio file data decoding. | 50 // Asynchronous audio file data decoding. |
51 [RaisesException] void decodeAudioData(ArrayBuffer audioData, [Callback] Aud
ioBufferCallback successCallback, [Callback] optional AudioBufferCallback errorC
allback); | 51 [RaisesException] void decodeAudioData(ArrayBuffer audioData, AudioBufferCal
lback successCallback, optional AudioBufferCallback errorCallback); |
52 | 52 |
53 // Sources | 53 // Sources |
54 AudioBufferSourceNode createBufferSource(); | 54 AudioBufferSourceNode createBufferSource(); |
55 | 55 |
56 [RaisesException] MediaElementAudioSourceNode createMediaElementSource(HTMLM
ediaElement mediaElement); | 56 [RaisesException] MediaElementAudioSourceNode createMediaElementSource(HTMLM
ediaElement mediaElement); |
57 | 57 |
58 #if defined(ENABLE_MEDIA_STREAM) && ENABLE_MEDIA_STREAM | 58 #if defined(ENABLE_MEDIA_STREAM) && ENABLE_MEDIA_STREAM |
59 [RaisesException] MediaStreamAudioSourceNode createMediaStreamSource(MediaSt
ream mediaStream); | 59 [RaisesException] MediaStreamAudioSourceNode createMediaStreamSource(MediaSt
ream mediaStream); |
60 MediaStreamAudioDestinationNode createMediaStreamDestination(); | 60 MediaStreamAudioDestinationNode createMediaStreamDestination(); |
61 #endif | 61 #endif |
(...skipping 19 matching lines...) Expand all Loading... |
81 // void prepareOfflineBufferRendering(unsigned long numberOfChannels, unsign
ed long numberOfFrames, float sampleRate); | 81 // void prepareOfflineBufferRendering(unsigned long numberOfChannels, unsign
ed long numberOfFrames, float sampleRate); |
82 attribute EventListener oncomplete; | 82 attribute EventListener oncomplete; |
83 void startRendering(); | 83 void startRendering(); |
84 | 84 |
85 [MeasureAs=LegacyWebAudio, ImplementedAs=createGain] GainNode createGainNode
(); | 85 [MeasureAs=LegacyWebAudio, ImplementedAs=createGain] GainNode createGainNode
(); |
86 [MeasureAs=LegacyWebAudio, ImplementedAs=createDelay, RaisesException] Delay
Node createDelayNode(optional double maxDelayTime); | 86 [MeasureAs=LegacyWebAudio, ImplementedAs=createDelay, RaisesException] Delay
Node createDelayNode(optional double maxDelayTime); |
87 | 87 |
88 [MeasureAs=LegacyWebAudio, ImplementedAs=createScriptProcessor, RaisesExcept
ion] ScriptProcessorNode createJavaScriptNode(unsigned long bufferSize, optional
unsigned long numberOfInputChannels, optional unsigned long numberOfOutputChann
els); | 88 [MeasureAs=LegacyWebAudio, ImplementedAs=createScriptProcessor, RaisesExcept
ion] ScriptProcessorNode createJavaScriptNode(unsigned long bufferSize, optional
unsigned long numberOfInputChannels, optional unsigned long numberOfOutputChann
els); |
89 | 89 |
90 }; | 90 }; |
OLD | NEW |