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 245 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
256 { | 256 { |
257 m_bufferReadWriteIndex = 0; | 257 m_bufferReadWriteIndex = 0; |
258 m_doubleBufferIndex = 0; | 258 m_doubleBufferIndex = 0; |
259 | 259 |
260 for (unsigned i = 0; i < 2; ++i) { | 260 for (unsigned i = 0; i < 2; ++i) { |
261 m_inputBuffers[i]->zero(); | 261 m_inputBuffers[i]->zero(); |
262 m_outputBuffers[i]->zero(); | 262 m_outputBuffers[i]->zero(); |
263 } | 263 } |
264 } | 264 } |
265 | 265 |
266 const AtomicString& ScriptProcessorNode::interfaceName() const | |
267 { | |
268 return eventNames().interfaceForScriptProcessorNode; | |
269 } | |
270 | |
271 ScriptExecutionContext* ScriptProcessorNode::scriptExecutionContext() const | |
272 { | |
273 return const_cast<ScriptProcessorNode*>(this)->context()->scriptExecutionCon
text(); | |
274 } | |
275 | |
276 double ScriptProcessorNode::tailTime() const | 266 double ScriptProcessorNode::tailTime() const |
277 { | 267 { |
278 return std::numeric_limits<double>::infinity(); | 268 return std::numeric_limits<double>::infinity(); |
279 } | 269 } |
280 | 270 |
281 double ScriptProcessorNode::latencyTime() const | 271 double ScriptProcessorNode::latencyTime() const |
282 { | 272 { |
283 return std::numeric_limits<double>::infinity(); | 273 return std::numeric_limits<double>::infinity(); |
284 } | 274 } |
285 | 275 |
286 } // namespace WebCore | 276 } // namespace WebCore |
287 | 277 |
288 #endif // ENABLE(WEB_AUDIO) | 278 #endif // ENABLE(WEB_AUDIO) |
OLD | NEW |