Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(249)

Side by Side Diff: Source/modules/webaudio/MediaStreamAudioDestinationNode.cpp

Issue 534473002: Revert of Oilpan: Move MediaStreamSource, MediaStreamComponent and MediaStreamDescriptor (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 } 65 }
66 66
67 void MediaStreamAudioDestinationNode::dispose() 67 void MediaStreamAudioDestinationNode::dispose()
68 { 68 {
69 uninitialize(); 69 uninitialize();
70 AudioBasicInspectorNode::dispose(); 70 AudioBasicInspectorNode::dispose();
71 } 71 }
72 72
73 void MediaStreamAudioDestinationNode::trace(Visitor* visitor) 73 void MediaStreamAudioDestinationNode::trace(Visitor* visitor)
74 { 74 {
75 visitor->trace(m_source);
76 visitor->trace(m_stream); 75 visitor->trace(m_stream);
77 AudioBasicInspectorNode::trace(visitor); 76 AudioBasicInspectorNode::trace(visitor);
78 } 77 }
79 78
80 void MediaStreamAudioDestinationNode::process(size_t numberOfFrames) 79 void MediaStreamAudioDestinationNode::process(size_t numberOfFrames)
81 { 80 {
82 m_mixBus->copyFrom(*input(0)->bus()); 81 m_mixBus->copyFrom(*input(0)->bus());
83 m_source->consumeAudio(m_mixBus.get(), numberOfFrames); 82 m_source->consumeAudio(m_mixBus.get(), numberOfFrames);
84 } 83 }
85 84
86 } // namespace blink 85 } // namespace blink
87 86
88 #endif // ENABLE(WEB_AUDIO) 87 #endif // ENABLE(WEB_AUDIO)
OLDNEW
« no previous file with comments | « Source/modules/webaudio/MediaStreamAudioDestinationNode.h ('k') | Source/platform/exported/WebMediaStream.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698