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