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 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 |
50 [RaisesException] AudioBuffer createBuffer(unsigned long numberOfChannels, u
nsigned long numberOfFrames, float sampleRate); | 50 [RaisesException] AudioBuffer createBuffer(unsigned long numberOfChannels, u
nsigned long numberOfFrames, float sampleRate); |
51 [RaisesException] AudioBuffer createBuffer(ArrayBuffer? buffer, boolean mixT
oMono); | |
52 | 51 |
53 // Asynchronous audio file data decoding. | 52 // Asynchronous audio file data decoding. |
54 [RaisesException] void decodeAudioData(ArrayBuffer audioData, AudioBufferCal
lback successCallback, optional AudioBufferCallback errorCallback); | 53 [RaisesException] void decodeAudioData(ArrayBuffer audioData, AudioBufferCal
lback successCallback, optional AudioBufferCallback errorCallback); |
55 | 54 |
56 // Sources | 55 // Sources |
57 AudioBufferSourceNode createBufferSource(); | 56 AudioBufferSourceNode createBufferSource(); |
58 | 57 |
59 [RaisesException] MediaElementAudioSourceNode createMediaElementSource(HTMLM
ediaElement mediaElement); | 58 [RaisesException] MediaElementAudioSourceNode createMediaElementSource(HTMLM
ediaElement mediaElement); |
60 | 59 |
61 [RaisesException] MediaStreamAudioSourceNode createMediaStreamSource(MediaSt
ream mediaStream); | 60 [RaisesException] MediaStreamAudioSourceNode createMediaStreamSource(MediaSt
ream mediaStream); |
(...skipping 14 matching lines...) Expand all Loading... |
76 | 75 |
77 // Channel splitting and merging | 76 // Channel splitting and merging |
78 [RaisesException] ChannelSplitterNode createChannelSplitter(optional unsigne
d long numberOfOutputs); | 77 [RaisesException] ChannelSplitterNode createChannelSplitter(optional unsigne
d long numberOfOutputs); |
79 [RaisesException] ChannelMergerNode createChannelMerger(optional unsigned lo
ng numberOfInputs); | 78 [RaisesException] ChannelMergerNode createChannelMerger(optional unsigned lo
ng numberOfInputs); |
80 | 79 |
81 // Offline rendering | 80 // Offline rendering |
82 // void prepareOfflineBufferRendering(unsigned long numberOfChannels, unsign
ed long numberOfFrames, float sampleRate); | 81 // void prepareOfflineBufferRendering(unsigned long numberOfChannels, unsign
ed long numberOfFrames, float sampleRate); |
83 attribute EventHandler oncomplete; | 82 attribute EventHandler oncomplete; |
84 void startRendering(); | 83 void startRendering(); |
85 }; | 84 }; |
OLD | NEW |