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

Unified Diff: webkit/plugins/ppapi/ppb_audio_impl.cc

Issue 10832285: Switch OnMoreData() to use AudioBus. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase. Comments. Created 8 years, 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « webkit/plugins/ppapi/ppb_audio_impl.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/plugins/ppapi/ppb_audio_impl.cc
diff --git a/webkit/plugins/ppapi/ppb_audio_impl.cc b/webkit/plugins/ppapi/ppb_audio_impl.cc
index 96504aa0f69920d5987a93ba84e8382358922d60..aea9005a2c0b4790df28a1da8d5e5b8686273dc7 100644
--- a/webkit/plugins/ppapi/ppb_audio_impl.cc
+++ b/webkit/plugins/ppapi/ppb_audio_impl.cc
@@ -30,7 +30,8 @@ namespace ppapi {
PPB_Audio_Impl::PPB_Audio_Impl(PP_Instance instance)
: Resource(::ppapi::OBJECT_IS_IMPL, instance),
- audio_(NULL) {
+ audio_(NULL),
+ sample_frame_count_(0) {
}
PPB_Audio_Impl::~PPB_Audio_Impl() {
@@ -81,6 +82,7 @@ bool PPB_Audio_Impl::Init(PP_Resource config,
audio_ = plugin_delegate->CreateAudioOutput(
enter.object()->GetSampleRate(), enter.object()->GetSampleFrameCount(),
this);
+ sample_frame_count_ = enter.object()->GetSampleFrameCount();
return audio_ != NULL;
}
@@ -153,7 +155,7 @@ void PPB_Audio_Impl::OnSetStreamInfo(
size_t shared_memory_size,
base::SyncSocket::Handle socket_handle) {
SetStreamInfo(pp_instance(), shared_memory_handle, shared_memory_size,
- socket_handle);
+ socket_handle, sample_frame_count_);
}
} // namespace ppapi
« no previous file with comments | « webkit/plugins/ppapi/ppb_audio_impl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698