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

Side by Side Diff: ppapi/shared_impl/ppb_audio_config_shared.h

Issue 22320004: Add a new parameter |latency| to PPB_Audio. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 7 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/proxy/resource_creation_proxy.cc ('k') | ppapi/shared_impl/ppb_audio_shared.h » ('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 PPAPI_SHARED_IMPL_PPB_AUDIO_CONFIG_SHARED_H_ 5 #ifndef PPAPI_SHARED_IMPL_PPB_AUDIO_CONFIG_SHARED_H_
6 #define PPAPI_SHARED_IMPL_PPB_AUDIO_CONFIG_SHARED_H_ 6 #define PPAPI_SHARED_IMPL_PPB_AUDIO_CONFIG_SHARED_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "ppapi/shared_impl/resource.h" 10 #include "ppapi/shared_impl/resource.h"
11 #include "ppapi/thunk/ppb_audio_config_api.h" 11 #include "ppapi/thunk/ppb_audio_config_api.h"
12 12
13 namespace ppapi { 13 namespace ppapi {
14 14
15 const int kBitsPerAudioInputSample = 16; 15 const int kBitsPerAudioInputSample = 16;
16 const int kAudioInputChannels = 1; 16 const int kAudioInputChannels = 1;
17 17
18 // TODO(dalecurtis, yzshen): PPAPI shouldn't hard code these values for all
19 // clients.
18 const int kBitsPerAudioOutputSample = 16; 20 const int kBitsPerAudioOutputSample = 16;
19 const int kAudioOutputChannels = 2; 21 const int kAudioOutputChannels = 2;
20 22
21 class PPAPI_SHARED_EXPORT PPB_AudioConfig_Shared 23 class PPAPI_SHARED_EXPORT PPB_AudioConfig_Shared
22 : public Resource, 24 : public Resource,
23 public thunk::PPB_AudioConfig_API { 25 public thunk::PPB_AudioConfig_API {
24 public: 26 public:
25 virtual ~PPB_AudioConfig_Shared(); 27 virtual ~PPB_AudioConfig_Shared();
26 28
27 static PP_Resource Create(ResourceObjectType type, 29 static PP_Resource Create(ResourceObjectType type,
(...skipping 24 matching lines...) Expand all
52 54
53 PP_AudioSampleRate sample_rate_; 55 PP_AudioSampleRate sample_rate_;
54 uint32_t sample_frame_count_; 56 uint32_t sample_frame_count_;
55 57
56 DISALLOW_COPY_AND_ASSIGN(PPB_AudioConfig_Shared); 58 DISALLOW_COPY_AND_ASSIGN(PPB_AudioConfig_Shared);
57 }; 59 };
58 60
59 } // namespace ppapi 61 } // namespace ppapi
60 62
61 #endif // PPAPI_SHARED_IMPL_PPB_AUDIO_CONFIG_SHARED_H_ 63 #endif // PPAPI_SHARED_IMPL_PPB_AUDIO_CONFIG_SHARED_H_
OLDNEW
« no previous file with comments | « ppapi/proxy/resource_creation_proxy.cc ('k') | ppapi/shared_impl/ppb_audio_shared.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698