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

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

Issue 14362037: Remove USE(GSTREAMER) and USE(WEBAUDIO_GSTREAMER) guards. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Remove GSTREAMER specific code Created 7 years, 8 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
« no previous file with comments | « Source/core/testing/Internals.idl ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 69
70 #if ENABLE(VIDEO) 70 #if ENABLE(VIDEO)
71 #include "HTMLMediaElement.h" 71 #include "HTMLMediaElement.h"
72 #include "MediaElementAudioSourceNode.h" 72 #include "MediaElementAudioSourceNode.h"
73 #endif 73 #endif
74 74
75 #if DEBUG_AUDIONODE_REFERENCES 75 #if DEBUG_AUDIONODE_REFERENCES
76 #include <stdio.h> 76 #include <stdio.h>
77 #endif 77 #endif
78 78
79 #if USE(GSTREAMER)
80 #include "GStreamerUtilities.h"
81 #endif
82
83 #include <wtf/ArrayBuffer.h> 79 #include <wtf/ArrayBuffer.h>
84 #include <wtf/Atomics.h> 80 #include <wtf/Atomics.h>
85 #include <wtf/MainThread.h> 81 #include <wtf/MainThread.h>
86 #include <wtf/OwnPtr.h> 82 #include <wtf/OwnPtr.h>
87 #include <wtf/PassOwnPtr.h> 83 #include <wtf/PassOwnPtr.h>
88 #include <wtf/RefCounted.h> 84 #include <wtf/RefCounted.h>
89 #include <wtf/text/WTFString.h> 85 #include <wtf/text/WTFString.h>
90 86
91 // FIXME: check the proper way to reference an undefined thread ID 87 // FIXME: check the proper way to reference an undefined thread ID
92 const int UndefinedThreadIdentifier = 0xffffffff; 88 const int UndefinedThreadIdentifier = 0xffffffff;
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
169 m_renderTarget = AudioBuffer::create(numberOfChannels, numberOfFrames, sampl eRate); 165 m_renderTarget = AudioBuffer::create(numberOfChannels, numberOfFrames, sampl eRate);
170 m_destinationNode = OfflineAudioDestinationNode::create(this, m_renderTarget .get()); 166 m_destinationNode = OfflineAudioDestinationNode::create(this, m_renderTarget .get());
171 } 167 }
172 168
173 void AudioContext::constructCommon() 169 void AudioContext::constructCommon()
174 { 170 {
175 // According to spec AudioContext must die only after page navigate. 171 // According to spec AudioContext must die only after page navigate.
176 // Lets mark it as ActiveDOMObject with pending activity and unmark it in cl ear method. 172 // Lets mark it as ActiveDOMObject with pending activity and unmark it in cl ear method.
177 setPendingActivity(this); 173 setPendingActivity(this);
178 174
179 #if USE(GSTREAMER)
180 initializeGStreamer();
181 #endif
182
183 FFTFrame::initialize(); 175 FFTFrame::initialize();
184 176
185 m_listener = AudioListener::create(); 177 m_listener = AudioListener::create();
186 } 178 }
187 179
188 AudioContext::~AudioContext() 180 AudioContext::~AudioContext()
189 { 181 {
190 #if DEBUG_AUDIONODE_REFERENCES 182 #if DEBUG_AUDIONODE_REFERENCES
191 fprintf(stderr, "%p: AudioContext::~AudioContext()\n", this); 183 fprintf(stderr, "%p: AudioContext::~AudioContext()\n", this);
192 #endif 184 #endif
(...skipping 805 matching lines...) Expand 10 before | Expand all | Expand 10 after
998 info.addMember(m_deferredFinishDerefList, "deferredFinishDerefList"); 990 info.addMember(m_deferredFinishDerefList, "deferredFinishDerefList");
999 info.addMember(m_hrtfDatabaseLoader, "hrtfDatabaseLoader"); 991 info.addMember(m_hrtfDatabaseLoader, "hrtfDatabaseLoader");
1000 info.addMember(m_eventTargetData, "eventTargetData"); 992 info.addMember(m_eventTargetData, "eventTargetData");
1001 info.addMember(m_renderTarget, "renderTarget"); 993 info.addMember(m_renderTarget, "renderTarget");
1002 info.addMember(m_audioDecoder, "audioDecoder"); 994 info.addMember(m_audioDecoder, "audioDecoder");
1003 } 995 }
1004 996
1005 } // namespace WebCore 997 } // namespace WebCore
1006 998
1007 #endif // ENABLE(WEB_AUDIO) 999 #endif // ENABLE(WEB_AUDIO)
OLDNEW
« no previous file with comments | « Source/core/testing/Internals.idl ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698