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

Unified Diff: ppapi/native_client/src/shared/ppapi_proxy/plugin_ppb_audio.h

Issue 10832285: Switch OnMoreData() to use AudioBus. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Review ready. Created 8 years, 4 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
Index: ppapi/native_client/src/shared/ppapi_proxy/plugin_ppb_audio.h
diff --git a/ppapi/native_client/src/shared/ppapi_proxy/plugin_ppb_audio.h b/ppapi/native_client/src/shared/ppapi_proxy/plugin_ppb_audio.h
index 07d5a7dbc4f3c8822f647d0e52ea948b2c7c7d0d..6bba72ff6f24e870ce442cbdaaead6aed6a136b8 100644
--- a/ppapi/native_client/src/shared/ppapi_proxy/plugin_ppb_audio.h
+++ b/ppapi/native_client/src/shared/ppapi_proxy/plugin_ppb_audio.h
@@ -12,6 +12,7 @@
#include "native_client/src/include/ref_counted.h"
#include "native_client/src/shared/ppapi_proxy/plugin_resource.h"
#include "native_client/src/shared/srpc/nacl_srpc.h"
+#include "media/base/audio_bus.h"
#include "ppapi/c/pp_resource.h"
#include "ppapi/c/ppb_audio.h"
@@ -59,6 +60,11 @@ class PluginAudio : public PluginResource {
bool thread_active_;
PPB_Audio_Callback user_callback_;
void* user_data_;
+ // AudioBus for shuttling data across the shared memory.
+ scoped_ptr<media::AudioBus> audio_bus_;
+ // Internal buffer for user's integer audio data.
+ int audio_buffer_size_;
+ scoped_ptr<uint8_t> audio_buffer_;
Chris Rogers 2012/08/24 20:20:26 I think this should be scoped_array<> ??
DaleCurtis 2012/08/24 23:53:12 Done.
IMPLEMENT_RESOURCE(PluginAudio);
NACL_DISALLOW_COPY_AND_ASSIGN(PluginAudio);

Powered by Google App Engine
This is Rietveld 408576698