| 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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 AudioBuffer createBuffer(in unsigned long numberOfChannels, in unsigned
long numberOfFrames, in float sampleRate) | 50 AudioBuffer createBuffer(in unsigned long numberOfChannels, in unsigned
long numberOfFrames, in float sampleRate) |
| 51 raises(DOMException); | 51 raises(DOMException); |
| 52 AudioBuffer createBuffer(in ArrayBuffer buffer, in boolean mixToMono) | 52 AudioBuffer createBuffer(in ArrayBuffer? buffer, in boolean mixToMono) |
| 53 raises(DOMException); | 53 raises(DOMException); |
| 54 | 54 |
| 55 // Asynchronous audio file data decoding. | 55 // Asynchronous audio file data decoding. |
| 56 void decodeAudioData(in ArrayBuffer audioData, in [Callback] AudioBuffer
Callback successCallback, in [Optional, Callback] AudioBufferCallback errorCallb
ack) | 56 void decodeAudioData(in ArrayBuffer audioData, in [Callback] AudioBuffer
Callback successCallback, in [Optional, Callback] AudioBufferCallback errorCallb
ack) |
| 57 raises(DOMException); | 57 raises(DOMException); |
| 58 | 58 |
| 59 // Sources | 59 // Sources |
| 60 AudioBufferSourceNode createBufferSource(); | 60 AudioBufferSourceNode createBufferSource(); |
| 61 #if defined(ENABLE_VIDEO) && ENABLE_VIDEO | 61 #if defined(ENABLE_VIDEO) && ENABLE_VIDEO |
| 62 MediaElementAudioSourceNode createMediaElementSource(in HTMLMediaElement
mediaElement) | 62 MediaElementAudioSourceNode createMediaElementSource(in HTMLMediaElement
mediaElement) |
| (...skipping 19 matching lines...) Expand all Loading... |
| 82 raises(DOMException); | 82 raises(DOMException); |
| 83 AudioChannelMerger createChannelMerger(in [Optional] unsigned long numbe
rOfInputs) | 83 AudioChannelMerger createChannelMerger(in [Optional] unsigned long numbe
rOfInputs) |
| 84 raises(DOMException); | 84 raises(DOMException); |
| 85 | 85 |
| 86 // Offline rendering | 86 // Offline rendering |
| 87 // void prepareOfflineBufferRendering(in unsigned long numberOfChannels,
in unsigned long numberOfFrames, in float sampleRate); | 87 // void prepareOfflineBufferRendering(in unsigned long numberOfChannels,
in unsigned long numberOfFrames, in float sampleRate); |
| 88 attribute EventListener oncomplete; | 88 attribute EventListener oncomplete; |
| 89 void startRendering(); | 89 void startRendering(); |
| 90 }; | 90 }; |
| 91 } | 91 } |
| OLD | NEW |