Add API to retrieve the audio hardware sample-rate
Created attachment 86546 [details] Patch
Comment on attachment 86546 [details] Patch Looks fine to me; do you want to commit the Chromium side first?
Thanks, Ken, yes I will have to. Here's that CL: http://codereview.chromium.org/6721015/
Committed r81797: <http://trac.webkit.org/changeset/81797>
I'm getting a compilation error in Chromium with this change: content/renderer/renderer_webkitclient_impl.cc: In member function ‘virtual WebKit::WebAudioDevice* RendererWebKitClientImpl::createAudioDevice(size_t, unsigned int, double, WebKit::WebAudioDevice::RenderCallback*)’: content/renderer/renderer_webkitclient_impl.cc:553: error: cannot allocate an object of abstract type ‘RendererWebAudioDeviceImpl’ ./content/renderer/renderer_webaudiodevice_impl.h:16: note: because the following virtual functions are pure within ‘RendererWebAudioDeviceImpl’: ./third_party/WebKit/Source/WebKit/chromium/public/WebAudioDevice.h:51: note: virtual double WebKit::WebAudioDevice::sampleRate() It looks like renderer_webaudiodevice_impl.* needs to declare sampleRate()?
Tony, sorry about that. I'll land a temporary fix on the chromium-side...
I have a patch about ready to land: http://codereview.chromium.org/6733006/