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

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

Issue 403013002: Rename WebCore to blink in Modules (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 5 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 21 matching lines...) Expand all
32 #include "modules/webaudio/AudioContext.h" 32 #include "modules/webaudio/AudioContext.h"
33 #include "modules/webaudio/AudioNodeOutput.h" 33 #include "modules/webaudio/AudioNodeOutput.h"
34 #include "platform/Logging.h" 34 #include "platform/Logging.h"
35 #include "platform/graphics/media/MediaPlayer.h" 35 #include "platform/graphics/media/MediaPlayer.h"
36 #include "wtf/Locker.h" 36 #include "wtf/Locker.h"
37 37
38 // These are somewhat arbitrary limits, but we need to do some kind of sanity-ch ecking. 38 // These are somewhat arbitrary limits, but we need to do some kind of sanity-ch ecking.
39 const unsigned minSampleRate = 8000; 39 const unsigned minSampleRate = 8000;
40 const unsigned maxSampleRate = 192000; 40 const unsigned maxSampleRate = 192000;
41 41
42 namespace WebCore { 42 namespace blink {
43 43
44 PassRefPtrWillBeRawPtr<MediaElementAudioSourceNode> MediaElementAudioSourceNode: :create(AudioContext* context, HTMLMediaElement* mediaElement) 44 PassRefPtrWillBeRawPtr<MediaElementAudioSourceNode> MediaElementAudioSourceNode: :create(AudioContext* context, HTMLMediaElement* mediaElement)
45 { 45 {
46 return adoptRefWillBeNoop(new MediaElementAudioSourceNode(context, mediaElem ent)); 46 return adoptRefWillBeNoop(new MediaElementAudioSourceNode(context, mediaElem ent));
47 } 47 }
48 48
49 MediaElementAudioSourceNode::MediaElementAudioSourceNode(AudioContext* context, HTMLMediaElement* mediaElement) 49 MediaElementAudioSourceNode::MediaElementAudioSourceNode(AudioContext* context, HTMLMediaElement* mediaElement)
50 : AudioSourceNode(context, context->sampleRate()) 50 : AudioSourceNode(context, context->sampleRate())
51 , m_mediaElement(mediaElement) 51 , m_mediaElement(mediaElement)
52 , m_sourceNumberOfChannels(0) 52 , m_sourceNumberOfChannels(0)
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
151 m_keepAliveWhileLocking.clear(); 151 m_keepAliveWhileLocking.clear();
152 } 152 }
153 153
154 void MediaElementAudioSourceNode::trace(Visitor* visitor) 154 void MediaElementAudioSourceNode::trace(Visitor* visitor)
155 { 155 {
156 visitor->trace(m_mediaElement); 156 visitor->trace(m_mediaElement);
157 AudioSourceNode::trace(visitor); 157 AudioSourceNode::trace(visitor);
158 AudioSourceProviderClient::trace(visitor); 158 AudioSourceProviderClient::trace(visitor);
159 } 159 }
160 160
161 } // namespace WebCore 161 } // namespace blink
162 162
163 #endif // ENABLE(WEB_AUDIO) 163 #endif // ENABLE(WEB_AUDIO)
OLDNEW
« no previous file with comments | « Source/modules/webaudio/MediaElementAudioSourceNode.h ('k') | Source/modules/webaudio/MediaStreamAudioDestinationNode.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698