OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #include "ppapi/shared_impl/ppb_audio_config_shared.h" | 5 #include "ppapi/shared_impl/ppb_audio_config_shared.h" |
6 | 6 |
7 namespace ppapi { | 7 namespace ppapi { |
8 | 8 |
9 PPB_AudioConfig_Shared::PPB_AudioConfig_Shared(PP_Instance instance) | 9 PPB_AudioConfig_Shared::PPB_AudioConfig_Shared(PP_Instance instance) |
10 : Resource(instance), | 10 : Resource(instance), |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
71 if (sample_frame_count > PP_AUDIOMAXSAMPLEFRAMECOUNT || | 71 if (sample_frame_count > PP_AUDIOMAXSAMPLEFRAMECOUNT || |
72 sample_frame_count < PP_AUDIOMINSAMPLEFRAMECOUNT) | 72 sample_frame_count < PP_AUDIOMINSAMPLEFRAMECOUNT) |
73 return false; | 73 return false; |
74 | 74 |
75 sample_rate_ = sample_rate; | 75 sample_rate_ = sample_rate; |
76 sample_frame_count_ = sample_frame_count; | 76 sample_frame_count_ = sample_frame_count; |
77 return true; | 77 return true; |
78 } | 78 } |
79 | 79 |
80 } // namespace ppapi | 80 } // namespace ppapi |
OLD | NEW |