OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2010, Google Inc. All rights reserved. | 2 * Copyright (C) 2010, Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
6 * are met: | 6 * are met: |
7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
(...skipping 247 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
258 void AnalyserNode::setSmoothingTimeConstant(double smoothing_time, | 258 void AnalyserNode::setSmoothingTimeConstant(double smoothing_time, |
259 ExceptionState& exception_state) { | 259 ExceptionState& exception_state) { |
260 GetAnalyserHandler().SetSmoothingTimeConstant(smoothing_time, | 260 GetAnalyserHandler().SetSmoothingTimeConstant(smoothing_time, |
261 exception_state); | 261 exception_state); |
262 } | 262 } |
263 | 263 |
264 double AnalyserNode::smoothingTimeConstant() const { | 264 double AnalyserNode::smoothingTimeConstant() const { |
265 return GetAnalyserHandler().SmoothingTimeConstant(); | 265 return GetAnalyserHandler().SmoothingTimeConstant(); |
266 } | 266 } |
267 | 267 |
268 void AnalyserNode::getFloatFrequencyData(DOMFloat32Array* array) { | 268 void AnalyserNode::getFloatFrequencyData(NotShared<DOMFloat32Array> array) { |
269 GetAnalyserHandler().GetFloatFrequencyData(array, context()->currentTime()); | 269 GetAnalyserHandler().GetFloatFrequencyData(array.View(), |
| 270 context()->currentTime()); |
270 } | 271 } |
271 | 272 |
272 void AnalyserNode::getByteFrequencyData(DOMUint8Array* array) { | 273 void AnalyserNode::getByteFrequencyData(NotShared<DOMUint8Array> array) { |
273 GetAnalyserHandler().GetByteFrequencyData(array, context()->currentTime()); | 274 GetAnalyserHandler().GetByteFrequencyData(array.View(), |
| 275 context()->currentTime()); |
274 } | 276 } |
275 | 277 |
276 void AnalyserNode::getFloatTimeDomainData(DOMFloat32Array* array) { | 278 void AnalyserNode::getFloatTimeDomainData(NotShared<DOMFloat32Array> array) { |
277 GetAnalyserHandler().GetFloatTimeDomainData(array); | 279 GetAnalyserHandler().GetFloatTimeDomainData(array.View()); |
278 } | 280 } |
279 | 281 |
280 void AnalyserNode::getByteTimeDomainData(DOMUint8Array* array) { | 282 void AnalyserNode::getByteTimeDomainData(NotShared<DOMUint8Array> array) { |
281 GetAnalyserHandler().GetByteTimeDomainData(array); | 283 GetAnalyserHandler().GetByteTimeDomainData(array.View()); |
282 } | 284 } |
283 | 285 |
284 } // namespace blink | 286 } // namespace blink |
OLD | NEW |