| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2012, Google Inc. All rights reserved. | 2 * Copyright (C) 2012, 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 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 64 } | 64 } |
| 65 | 65 |
| 66 void MediaStreamAudioDestinationNode::dispose() | 66 void MediaStreamAudioDestinationNode::dispose() |
| 67 { | 67 { |
| 68 uninitialize(); | 68 uninitialize(); |
| 69 AudioBasicInspectorNode::dispose(); | 69 AudioBasicInspectorNode::dispose(); |
| 70 } | 70 } |
| 71 | 71 |
| 72 void MediaStreamAudioDestinationNode::trace(Visitor* visitor) | 72 void MediaStreamAudioDestinationNode::trace(Visitor* visitor) |
| 73 { | 73 { |
| 74 visitor->trace(m_source); |
| 74 visitor->trace(m_stream); | 75 visitor->trace(m_stream); |
| 75 AudioBasicInspectorNode::trace(visitor); | 76 AudioBasicInspectorNode::trace(visitor); |
| 76 } | 77 } |
| 77 | 78 |
| 78 void MediaStreamAudioDestinationNode::process(size_t numberOfFrames) | 79 void MediaStreamAudioDestinationNode::process(size_t numberOfFrames) |
| 79 { | 80 { |
| 80 m_mixBus->copyFrom(*input(0)->bus()); | 81 m_mixBus->copyFrom(*input(0)->bus()); |
| 81 m_source->consumeAudio(m_mixBus.get(), numberOfFrames); | 82 m_source->consumeAudio(m_mixBus.get(), numberOfFrames); |
| 82 } | 83 } |
| 83 | 84 |
| 84 } // namespace blink | 85 } // namespace blink |
| 85 | 86 |
| 86 #endif // ENABLE(WEB_AUDIO) | 87 #endif // ENABLE(WEB_AUDIO) |
| OLD | NEW |