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

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

Issue 1023113002: Web Audio: Change the argument of AudioNode::addOutput(). (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 9 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) 2011, Google Inc. All rights reserved. 2 * Copyright (C) 2011, 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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 } 43 }
44 44
45 MediaElementAudioSourceNode::MediaElementAudioSourceNode(AudioContext* context, HTMLMediaElement* mediaElement) 45 MediaElementAudioSourceNode::MediaElementAudioSourceNode(AudioContext* context, HTMLMediaElement* mediaElement)
46 : AudioSourceNode(NodeTypeMediaElementAudioSource, context, context->sampleR ate()) 46 : AudioSourceNode(NodeTypeMediaElementAudioSource, context, context->sampleR ate())
47 , m_mediaElement(mediaElement) 47 , m_mediaElement(mediaElement)
48 , m_sourceNumberOfChannels(0) 48 , m_sourceNumberOfChannels(0)
49 , m_sourceSampleRate(0) 49 , m_sourceSampleRate(0)
50 { 50 {
51 // Default to stereo. This could change depending on what the media element 51 // Default to stereo. This could change depending on what the media element
52 // .src is set to. 52 // .src is set to.
53 addOutput(AudioNodeOutput::create(this, 2)); 53 addOutput(2);
54 54
55 initialize(); 55 initialize();
56 } 56 }
57 57
58 MediaElementAudioSourceNode::~MediaElementAudioSourceNode() 58 MediaElementAudioSourceNode::~MediaElementAudioSourceNode()
59 { 59 {
60 ASSERT(!isInitialized()); 60 ASSERT(!isInitialized());
61 } 61 }
62 62
63 void MediaElementAudioSourceNode::dispose() 63 void MediaElementAudioSourceNode::dispose()
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
163 DEFINE_TRACE(MediaElementAudioSourceNode) 163 DEFINE_TRACE(MediaElementAudioSourceNode)
164 { 164 {
165 visitor->trace(m_mediaElement); 165 visitor->trace(m_mediaElement);
166 AudioSourceNode::trace(visitor); 166 AudioSourceNode::trace(visitor);
167 AudioSourceProviderClient::trace(visitor); 167 AudioSourceProviderClient::trace(visitor);
168 } 168 }
169 169
170 } // namespace blink 170 } // namespace blink
171 171
172 #endif // ENABLE(WEB_AUDIO) 172 #endif // ENABLE(WEB_AUDIO)
OLDNEW
« no previous file with comments | « Source/modules/webaudio/GainNode.cpp ('k') | Source/modules/webaudio/MediaStreamAudioSourceNode.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698