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

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

Issue 520433002: Output silence if the MediaElementAudioSourceNode has a different origin (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix nits Created 5 years, 10 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) 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 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 #include "modules/webaudio/OfflineAudioContext.h" 60 #include "modules/webaudio/OfflineAudioContext.h"
61 #include "modules/webaudio/OfflineAudioDestinationNode.h" 61 #include "modules/webaudio/OfflineAudioDestinationNode.h"
62 #include "modules/webaudio/OscillatorNode.h" 62 #include "modules/webaudio/OscillatorNode.h"
63 #include "modules/webaudio/PannerNode.h" 63 #include "modules/webaudio/PannerNode.h"
64 #include "modules/webaudio/PeriodicWave.h" 64 #include "modules/webaudio/PeriodicWave.h"
65 #include "modules/webaudio/ScriptProcessorNode.h" 65 #include "modules/webaudio/ScriptProcessorNode.h"
66 #include "modules/webaudio/StereoPannerNode.h" 66 #include "modules/webaudio/StereoPannerNode.h"
67 #include "modules/webaudio/WaveShaperNode.h" 67 #include "modules/webaudio/WaveShaperNode.h"
68 #include "platform/audio/FFTFrame.h" 68 #include "platform/audio/FFTFrame.h"
69 #include "platform/audio/HRTFPanner.h" 69 #include "platform/audio/HRTFPanner.h"
70 #include "platform/weborigin/SecurityOrigin.h"
70 #include "wtf/Atomics.h" 71 #include "wtf/Atomics.h"
71 #include "wtf/PassOwnPtr.h" 72 #include "wtf/PassOwnPtr.h"
72 #include "wtf/text/WTFString.h" 73 #include "wtf/text/WTFString.h"
73 74
74 #if DEBUG_AUDIONODE_REFERENCES 75 #if DEBUG_AUDIONODE_REFERENCES
75 #include <stdio.h> 76 #include <stdio.h>
76 #endif 77 #endif
77 78
78 namespace blink { 79 namespace blink {
79 80
(...skipping 1062 matching lines...) Expand 10 before | Expand all | Expand 10 after
1142 void AudioContext::updateChangedChannelCountMode() 1143 void AudioContext::updateChangedChannelCountMode()
1143 { 1144 {
1144 ASSERT(isGraphOwner()); 1145 ASSERT(isGraphOwner());
1145 1146
1146 for (HashSet<AudioNode*>::iterator k = m_deferredCountModeChange.begin(); k != m_deferredCountModeChange.end(); ++k) 1147 for (HashSet<AudioNode*>::iterator k = m_deferredCountModeChange.begin(); k != m_deferredCountModeChange.end(); ++k)
1147 (*k)->updateChannelCountMode(); 1148 (*k)->updateChannelCountMode();
1148 1149
1149 m_deferredCountModeChange.clear(); 1150 m_deferredCountModeChange.clear();
1150 } 1151 }
1151 1152
1153 SecurityOrigin* AudioContext::securityOrigin() const
1154 {
1155 return executionContext()->securityOrigin();
1156 }
1157
1152 } // namespace blink 1158 } // namespace blink
1153 1159
1154 #endif // ENABLE(WEB_AUDIO) 1160 #endif // ENABLE(WEB_AUDIO)
OLDNEW
« no previous file with comments | « Source/modules/webaudio/AudioContext.h ('k') | Source/modules/webaudio/MediaElementAudioSourceNode.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698