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

Side by Side Diff: ppapi/cpp/audio_config.h

Issue 10827248: PPAPI: Add missing const to AudioConfig::sample_frame_count(). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | 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_CPP_AUDIO_CONFIG_H_ 5 #ifndef PPAPI_CPP_AUDIO_CONFIG_H_
6 #define PPAPI_CPP_AUDIO_CONFIG_H_ 6 #define PPAPI_CPP_AUDIO_CONFIG_H_
7 7
8 #include "ppapi/c/ppb_audio_config.h" 8 #include "ppapi/c/ppb_audio_config.h"
9 #include "ppapi/c/pp_stdint.h" 9 #include "ppapi/c/pp_stdint.h"
10 #include "ppapi/cpp/resource.h" 10 #include "ppapi/cpp/resource.h"
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 113
114 /// Getter function for returning the internal 114 /// Getter function for returning the internal
115 /// <code>PP_AudioSampleRate</code> enum. 115 /// <code>PP_AudioSampleRate</code> enum.
116 /// 116 ///
117 /// @return The <code>PP_AudioSampleRate</code> enum. 117 /// @return The <code>PP_AudioSampleRate</code> enum.
118 PP_AudioSampleRate sample_rate() const { return sample_rate_; } 118 PP_AudioSampleRate sample_rate() const { return sample_rate_; }
119 119
120 /// Getter function for returning the internal sample frame count. 120 /// Getter function for returning the internal sample frame count.
121 /// 121 ///
122 /// @return A uint32_t containing the sample frame count. 122 /// @return A uint32_t containing the sample frame count.
123 uint32_t sample_frame_count() { return sample_frame_count_; } 123 uint32_t sample_frame_count() const { return sample_frame_count_; }
124 124
125 private: 125 private:
126 PP_AudioSampleRate sample_rate_; 126 PP_AudioSampleRate sample_rate_;
127 uint32_t sample_frame_count_; 127 uint32_t sample_frame_count_;
128 }; 128 };
129 129
130 } // namespace pp 130 } // namespace pp
131 131
132 #endif // PPAPI_CPP_AUDIO_CONFIG_H_ 132 #endif // PPAPI_CPP_AUDIO_CONFIG_H_
133 133
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698