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

Side by Side Diff: webkit/plugins/ppapi/ppb_audio_impl.h

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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « ppapi/shared_impl/ppb_audio_shared.cc ('k') | webkit/plugins/ppapi/ppb_audio_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef WEBKIT_PLUGINS_PPAPI_PPB_AUDIO_IMPL_H_ 5 #ifndef WEBKIT_PLUGINS_PPAPI_PPB_AUDIO_IMPL_H_
6 #define WEBKIT_PLUGINS_PPAPI_PPB_AUDIO_IMPL_H_ 6 #define WEBKIT_PLUGINS_PPAPI_PPB_AUDIO_IMPL_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/memory/ref_counted.h" 9 #include "base/memory/ref_counted.h"
10 #include "base/shared_memory.h" 10 #include "base/shared_memory.h"
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 size_t shared_memory_size_, 69 size_t shared_memory_size_,
70 base::SyncSocket::Handle socket); 70 base::SyncSocket::Handle socket);
71 71
72 // AudioConfig used for creating this Audio object. We own a ref. 72 // AudioConfig used for creating this Audio object. We own a ref.
73 ::ppapi::ScopedPPResource config_; 73 ::ppapi::ScopedPPResource config_;
74 74
75 // PluginDelegate audio object that we delegate audio IPC through. We don't 75 // PluginDelegate audio object that we delegate audio IPC through. We don't
76 // own this pointer but are responsible for calling Shutdown on it. 76 // own this pointer but are responsible for calling Shutdown on it.
77 PluginDelegate::PlatformAudioOutput* audio_; 77 PluginDelegate::PlatformAudioOutput* audio_;
78 78
79 // Track frame count for passing on to PPB_Audio_Shared::SetStreamInfo().
80 int sample_frame_count_;
81
79 DISALLOW_COPY_AND_ASSIGN(PPB_Audio_Impl); 82 DISALLOW_COPY_AND_ASSIGN(PPB_Audio_Impl);
80 }; 83 };
81 84
82 } // namespace ppapi 85 } // namespace ppapi
83 } // namespace webkit 86 } // namespace webkit
84 87
85 #endif // WEBKIT_PLUGINS_PPAPI_PPB_AUDIO_IMPL_H_ 88 #endif // WEBKIT_PLUGINS_PPAPI_PPB_AUDIO_IMPL_H_
OLDNEW
« no previous file with comments | « ppapi/shared_impl/ppb_audio_shared.cc ('k') | webkit/plugins/ppapi/ppb_audio_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698