diff options
author | kbr@google.com <kbr@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-12-16 20:44:09 +0000 |
---|---|---|
committer | kbr@google.com <kbr@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-12-16 20:44:09 +0000 |
commit | 949b9944f46a631b50887462ab74e37d9fe2b31a (patch) | |
tree | 0714f906d828f66fcb6aec52b3e3bb62e32e61cd /webkit/glue/webkitclient_impl.h | |
parent | 90f9a2962b73b2db4192129961648b449f74f651 (diff) | |
download | chromium_src-949b9944f46a631b50887462ab74e37d9fe2b31a.zip chromium_src-949b9944f46a631b50887462ab74e37d9fe2b31a.tar.gz chromium_src-949b9944f46a631b50887462ab74e37d9fe2b31a.tar.bz2 |
(Committing on behalf of Chris Rogers -- original CL http://codereview.chromium.org/5550006/ )
Implement WebKitClientImpl::loadAudioResource() to decode in-memory audio file data for use by WebKit.
Most of the interesting low-level code is being added in the media directory.
BUG=NONE
TEST=NONE (tested locally with web audio API loading files of format .wav .aif .mp3 .m4a 16bit 24bit
In the longer term, WebKit layout tests will comprehensively exercise this code)
Review URL: http://codereview.chromium.org/5880002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@69458 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/glue/webkitclient_impl.h')
-rw-r--r-- | webkit/glue/webkitclient_impl.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/webkit/glue/webkitclient_impl.h b/webkit/glue/webkitclient_impl.h index 2836e8e..cc361d3 100644 --- a/webkit/glue/webkitclient_impl.h +++ b/webkit/glue/webkitclient_impl.h @@ -52,6 +52,9 @@ class WebKitClientImpl : public WebKit::WebKitClient { virtual void traceEventBegin(const char* name, void* id, const char* extra); virtual void traceEventEnd(const char* name, void* id, const char* extra); virtual WebKit::WebData loadResource(const char* name); + virtual bool loadAudioResource( + WebKit::WebAudioBus* destination_bus, const char* audio_file_data, + size_t data_size, double sample_rate); virtual WebKit::WebString queryLocalizedString( WebKit::WebLocalizedString::Name name); virtual WebKit::WebString queryLocalizedString( |