summaryrefslogtreecommitdiff
path: root/Source/WebCore/webaudio/AudioContext.cpp
diff options
context:
space:
mode:
authorSimon Hausmann <simon.hausmann@nokia.com>2012-02-03 09:55:33 +0100
committerSimon Hausmann <simon.hausmann@nokia.com>2012-02-03 09:55:33 +0100
commitcd44dc59cdfc39534aef4d417e9f3c412e3be139 (patch)
tree8d89889ba95ed6ec9322e733846cc9cce9d7dff1 /Source/WebCore/webaudio/AudioContext.cpp
parentd11f84f5b5cdc0d92a08af01b13472fdd5f9acb9 (diff)
downloadqtwebkit-cd44dc59cdfc39534aef4d417e9f3c412e3be139.tar.gz
Imported WebKit commit fce473cb4d55aa9fe9d0b0322a2fffecb731b961 (http://svn.webkit.org/repository/webkit/trunk@106560)
Diffstat (limited to 'Source/WebCore/webaudio/AudioContext.cpp')
-rw-r--r--Source/WebCore/webaudio/AudioContext.cpp14
1 files changed, 0 insertions, 14 deletions
diff --git a/Source/WebCore/webaudio/AudioContext.cpp b/Source/WebCore/webaudio/AudioContext.cpp
index dca96063a..0c1664fb8 100644
--- a/Source/WebCore/webaudio/AudioContext.cpp
+++ b/Source/WebCore/webaudio/AudioContext.cpp
@@ -172,8 +172,6 @@ void AudioContext::constructCommon()
FFTFrame::initialize();
m_listener = AudioListener::create();
- m_temporaryMonoBus = adoptPtr(new AudioBus(1, AudioNode::ProcessingSizeInFrames));
- m_temporaryStereoBus = adoptPtr(new AudioBus(2, AudioNode::ProcessingSizeInFrames));
}
AudioContext::~AudioContext()
@@ -238,13 +236,6 @@ void AudioContext::uninitialize()
deleteMarkedNodes();
- // Because the AudioBuffers are garbage collected, we can't delete them here.
- // Instead, at least release the potentially large amount of allocated memory for the audio data.
- // Note that we do this *after* the context is uninitialized and stops processing audio.
- for (unsigned i = 0; i < m_allocatedBuffers.size(); ++i)
- m_allocatedBuffers[i]->releaseMemory();
- m_allocatedBuffers.clear();
-
m_isInitialized = false;
}
}
@@ -295,11 +286,6 @@ bool AudioContext::hasDocument()
return m_document;
}
-void AudioContext::refBuffer(PassRefPtr<AudioBuffer> buffer)
-{
- m_allocatedBuffers.append(buffer);
-}
-
PassRefPtr<AudioBuffer> AudioContext::createBuffer(unsigned numberOfChannels, size_t numberOfFrames, float sampleRate, ExceptionCode& ec)
{
RefPtr<AudioBuffer> audioBuffer = AudioBuffer::create(numberOfChannels, numberOfFrames, sampleRate);