OLD | NEW |
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 <stdint.h> |
| 9 |
9 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
| 11 #include "base/macros.h" |
10 #include "ppapi/shared_impl/resource.h" | 12 #include "ppapi/shared_impl/resource.h" |
11 #include "ppapi/thunk/ppb_audio_config_api.h" | 13 #include "ppapi/thunk/ppb_audio_config_api.h" |
12 | 14 |
13 namespace ppapi { | 15 namespace ppapi { |
14 | 16 |
15 const int kBitsPerAudioInputSample = 16; | 17 const int kBitsPerAudioInputSample = 16; |
16 const int kAudioInputChannels = 1; | 18 const int kAudioInputChannels = 1; |
17 | 19 |
18 // TODO(dalecurtis, yzshen): PPAPI shouldn't hard code these values for all | 20 // TODO(dalecurtis, yzshen): PPAPI shouldn't hard code these values for all |
19 // clients. | 21 // clients. |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
56 | 58 |
57 PP_AudioSampleRate sample_rate_; | 59 PP_AudioSampleRate sample_rate_; |
58 uint32_t sample_frame_count_; | 60 uint32_t sample_frame_count_; |
59 | 61 |
60 DISALLOW_COPY_AND_ASSIGN(PPB_AudioConfig_Shared); | 62 DISALLOW_COPY_AND_ASSIGN(PPB_AudioConfig_Shared); |
61 }; | 63 }; |
62 | 64 |
63 } // namespace ppapi | 65 } // namespace ppapi |
64 | 66 |
65 #endif // PPAPI_SHARED_IMPL_PPB_AUDIO_CONFIG_SHARED_H_ | 67 #endif // PPAPI_SHARED_IMPL_PPB_AUDIO_CONFIG_SHARED_H_ |
OLD | NEW |