Changeset 87173 in webkit
- Timestamp:
- May 24, 2011 11:16:51 AM (13 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r87172 r87173 1 2011-05-24 Zan Dobersek <zandobersek@gmail.com> and Philippe Normand <pnormand@igalia.com> 2 3 Reviewed by Kenneth Russell. 4 5 Enable FloatArray usage outside WebGL guards 6 https://bugs.webkit.org/show_bug.cgi?id=61356 7 8 * webaudio/AudioBuffer.cpp: 9 * webaudio/AudioBuffer.idl: 10 * webaudio/RealtimeAnalyser.cpp: 11 * webaudio/RealtimeAnalyser.h: 12 * webaudio/RealtimeAnalyserNode.h: 13 * webaudio/RealtimeAnalyserNode.idl: 14 1 15 2011-05-24 Adam Klein <adamk@chromium.org> 2 16 -
trunk/Source/WebCore/webaudio/AudioBuffer.cpp
r76600 r87173 29 29 #include "config.h" 30 30 31 #if ENABLE(WEB_AUDIO) & ENABLE(WEBGL)31 #if ENABLE(WEB_AUDIO) 32 32 33 33 #include "AudioBuffer.h" … … 108 108 } // namespace WebCore 109 109 110 #endif // ENABLE(WEB_AUDIO) & ENABLE(WEBGL)110 #endif // ENABLE(WEB_AUDIO) -
trunk/Source/WebCore/webaudio/AudioBuffer.idl
r76600 r87173 29 29 module audio { 30 30 interface [ 31 Conditional=WEB_AUDIO & WEBGL31 Conditional=WEB_AUDIO 32 32 ] AudioBuffer { 33 33 readonly attribute long length; // in sample-frames -
trunk/Source/WebCore/webaudio/RealtimeAnalyser.cpp
r76600 r87173 32 32 #include "AudioUtilities.h" 33 33 #include "FFTFrame.h" 34 35 #if ENABLE(WEBGL)36 34 #include "Float32Array.h" 37 35 #include "Uint8Array.h" 38 #endif39 36 40 37 #include <algorithm> … … 194 191 } 195 192 196 #if ENABLE(WEBGL)197 198 193 void RealtimeAnalyser::getFloatFrequencyData(Float32Array* destinationArray) 199 194 { … … 295 290 } 296 291 297 #endif // WEBGL298 299 292 } // namespace WebCore 300 293 -
trunk/Source/WebCore/webaudio/RealtimeAnalyser.h
r76600 r87173 34 34 class AudioBus; 35 35 class FFTFrame; 36 37 #if ENABLE(WEBGL)38 36 class Float32Array; 39 37 class Uint8Array; 40 #endif41 38 42 39 class RealtimeAnalyser { … … 62 59 float smoothingTimeConstant() const { return static_cast<float>(m_smoothingTimeConstant); } 63 60 64 #if ENABLE(WEBGL)65 61 void getFloatFrequencyData(Float32Array*); 66 62 void getByteFrequencyData(Uint8Array*); 67 63 void getByteTimeDomainData(Uint8Array*); 68 #endif69 64 70 65 // The audio thread writes input data here. -
trunk/Source/WebCore/webaudio/RealtimeAnalyserNode.h
r76600 r87173 60 60 float smoothingTimeConstant() const { return m_analyser.smoothingTimeConstant(); } 61 61 62 #if ENABLE(WEBGL)63 62 void getFloatFrequencyData(Float32Array* array) { m_analyser.getFloatFrequencyData(array); } 64 63 void getByteFrequencyData(Uint8Array* array) { m_analyser.getByteFrequencyData(array); } 65 64 void getByteTimeDomainData(Uint8Array* array) { m_analyser.getByteTimeDomainData(array); } 66 #endif67 65 68 66 private: -
trunk/Source/WebCore/webaudio/RealtimeAnalyserNode.idl
r76600 r87173 40 40 // Copies the current frequency data into the passed array. 41 41 // If the array has fewer elements than the frequencyBinCount, the excess elements will be dropped. 42 [Conditional=WEBGL]void getFloatFrequencyData(in Float32Array array);43 [Conditional=WEBGL]void getByteFrequencyData(in Uint8Array array);42 void getFloatFrequencyData(in Float32Array array); 43 void getByteFrequencyData(in Uint8Array array); 44 44 45 45 // Real-time waveform data 46 [Conditional=WEBGL]void getByteTimeDomainData(in Uint8Array array);46 void getByteTimeDomainData(in Uint8Array array); 47 47 }; 48 48 }
Note: See TracChangeset
for help on using the changeset viewer.