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

Unified Diff: talk/media/base/audioframe.h

Issue 1362503003: Use suffixed {uint,int}{8,16,32,64}_t types. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: rebase + revert basictypes.h (to be landed separately just in case of a revert due to unexpected us… Created 5 years, 2 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « talk/app/webrtc/webrtcsessiondescriptionfactory.cc ('k') | talk/media/base/cpuid.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: talk/media/base/audioframe.h
diff --git a/talk/media/base/audioframe.h b/talk/media/base/audioframe.h
old mode 100755
new mode 100644
index b0c8b047d4ad273b707299125d38991587355d6f..157d0f11488b84fa08db9f3f18715b20297991f6
--- a/talk/media/base/audioframe.h
+++ b/talk/media/base/audioframe.h
@@ -38,14 +38,13 @@ class AudioFrame {
sampling_frequency_(8000),
stereo_(false) {
}
- AudioFrame(int16* audio, size_t audio_length, int sample_freq, bool stereo)
+ AudioFrame(int16_t* audio, size_t audio_length, int sample_freq, bool stereo)
: audio10ms_(audio),
length_(audio_length),
sampling_frequency_(sample_freq),
- stereo_(stereo) {
- }
+ stereo_(stereo) {}
- int16* GetData() { return audio10ms_; }
+ int16_t* GetData() { return audio10ms_; }
size_t GetSize() const { return length_; }
int GetSamplingFrequency() const { return sampling_frequency_; }
bool GetStereo() const { return stereo_; }
@@ -53,7 +52,7 @@ class AudioFrame {
private:
// TODO(janahan): currently the data is not owned by this class.
// add ownership when we come up with the first use case that requires it.
- int16* audio10ms_;
+ int16_t* audio10ms_;
size_t length_;
int sampling_frequency_;
bool stereo_;
« no previous file with comments | « talk/app/webrtc/webrtcsessiondescriptionfactory.cc ('k') | talk/media/base/cpuid.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698