| 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 244 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 255 | 255 |
| 256 void AnalyserNode::setSmoothingTimeConstant(double smoothingTime, | 256 void AnalyserNode::setSmoothingTimeConstant(double smoothingTime, |
| 257 ExceptionState& exceptionState) { | 257 ExceptionState& exceptionState) { |
| 258 analyserHandler().setSmoothingTimeConstant(smoothingTime, exceptionState); | 258 analyserHandler().setSmoothingTimeConstant(smoothingTime, exceptionState); |
| 259 } | 259 } |
| 260 | 260 |
| 261 double AnalyserNode::smoothingTimeConstant() const { | 261 double AnalyserNode::smoothingTimeConstant() const { |
| 262 return analyserHandler().smoothingTimeConstant(); | 262 return analyserHandler().smoothingTimeConstant(); |
| 263 } | 263 } |
| 264 | 264 |
| 265 void AnalyserNode::getFloatFrequencyData(DOMFloat32Array* array) { | 265 void AnalyserNode::getFloatFrequencyData( |
| 266 analyserHandler().getFloatFrequencyData(array, context()->currentTime()); | 266 const NotShared<DOMFloat32Array>& array) { |
| 267 analyserHandler().getFloatFrequencyData(array.view(), |
| 268 context()->currentTime()); |
| 267 } | 269 } |
| 268 | 270 |
| 269 void AnalyserNode::getByteFrequencyData(DOMUint8Array* array) { | 271 void AnalyserNode::getByteFrequencyData(const NotShared<DOMUint8Array>& array) { |
| 270 analyserHandler().getByteFrequencyData(array, context()->currentTime()); | 272 analyserHandler().getByteFrequencyData(array.view(), |
| 273 context()->currentTime()); |
| 271 } | 274 } |
| 272 | 275 |
| 273 void AnalyserNode::getFloatTimeDomainData(DOMFloat32Array* array) { | 276 void AnalyserNode::getFloatTimeDomainData( |
| 274 analyserHandler().getFloatTimeDomainData(array); | 277 const NotShared<DOMFloat32Array>& array) { |
| 278 analyserHandler().getFloatTimeDomainData(array.view()); |
| 275 } | 279 } |
| 276 | 280 |
| 277 void AnalyserNode::getByteTimeDomainData(DOMUint8Array* array) { | 281 void AnalyserNode::getByteTimeDomainData( |
| 278 analyserHandler().getByteTimeDomainData(array); | 282 const NotShared<DOMUint8Array>& array) { |
| 283 analyserHandler().getByteTimeDomainData(array.view()); |
| 279 } | 284 } |
| 280 | 285 |
| 281 } // namespace blink | 286 } // namespace blink |
| OLD | NEW |