diff options
author | crogers@google.com <crogers@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-03-23 21:53:09 +0000 |
---|---|---|
committer | crogers@google.com <crogers@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-03-23 21:53:09 +0000 |
commit | 213352a17b5cc70165919cd5a86e4a38758a8b4e (patch) | |
tree | 85e2b407c8066bdef3e972bbf9b47bc34725d3a4 /content | |
parent | e57ca5eba8c5062942359b8e4788d2aaf62496b9 (diff) | |
download | chromium_src-213352a17b5cc70165919cd5a86e4a38758a8b4e.zip chromium_src-213352a17b5cc70165919cd5a86e4a38758a8b4e.tar.gz chromium_src-213352a17b5cc70165919cd5a86e4a38758a8b4e.tar.bz2 |
RendererWebAudioDeviceImpl::sampleRate() shouldn't be inline
BUG=none
TEST=none
TBR=tony@chromium.org
Review URL: http://codereview.chromium.org/6696048
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@79189 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content')
-rw-r--r-- | content/renderer/renderer_webaudiodevice_impl.cc | 5 | ||||
-rw-r--r-- | content/renderer/renderer_webaudiodevice_impl.h | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/content/renderer/renderer_webaudiodevice_impl.cc b/content/renderer/renderer_webaudiodevice_impl.cc index 057132a..5c008c5 100644 --- a/content/renderer/renderer_webaudiodevice_impl.cc +++ b/content/renderer/renderer_webaudiodevice_impl.cc @@ -26,6 +26,11 @@ void RendererWebAudioDeviceImpl::stop() { audio_device_->Stop(); } +double RendererWebAudioDeviceImpl::sampleRate() +{ + return 44100.0; +} + void RendererWebAudioDeviceImpl::Render(const std::vector<float*>& audio_data, size_t number_of_frames) { // Make the client callback to get rendered audio. diff --git a/content/renderer/renderer_webaudiodevice_impl.h b/content/renderer/renderer_webaudiodevice_impl.h index e4643cd..dd5c61f 100644 --- a/content/renderer/renderer_webaudiodevice_impl.h +++ b/content/renderer/renderer_webaudiodevice_impl.h @@ -24,7 +24,7 @@ class RendererWebAudioDeviceImpl : public WebKit::WebAudioDevice, // WebKit::WebAudioDevice implementation. virtual void start(); virtual void stop(); - virtual double sampleRate() { return 44100.0; } + virtual double sampleRate(); // AudioDevice::RenderCallback implementation. virtual void Render(const std::vector<float*>& audio_data, |