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

Side by Side Diff: talk/media/base/fakemediaprocessor.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: google::int32 Created 5 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
OLDNEW
1 /* 1 /*
2 * libjingle 2 * libjingle
3 * Copyright 2004 Google Inc. 3 * Copyright 2004 Google Inc.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are met: 6 * modification, are permitted provided that the following conditions are met:
7 * 7 *
8 * 1. Redistributions of source code must retain the above copyright notice, 8 * 1. Redistributions of source code must retain the above copyright notice,
9 * this list of conditions and the following disclaimer. 9 * this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright notice, 10 * 2. Redistributions in binary form must reproduce the above copyright notice,
(...skipping 23 matching lines...) Expand all
34 34
35 class AudioFrame; 35 class AudioFrame;
36 36
37 class FakeMediaProcessor : public VoiceProcessor { 37 class FakeMediaProcessor : public VoiceProcessor {
38 public: 38 public:
39 FakeMediaProcessor() 39 FakeMediaProcessor()
40 : voice_frame_count_(0) { 40 : voice_frame_count_(0) {
41 } 41 }
42 virtual ~FakeMediaProcessor() {} 42 virtual ~FakeMediaProcessor() {}
43 43
44 virtual void OnFrame(uint32 ssrc, 44 virtual void OnFrame(uint32_t ssrc,
45 MediaProcessorDirection direction, 45 MediaProcessorDirection direction,
46 AudioFrame* frame) { 46 AudioFrame* frame) {
47 ++voice_frame_count_; 47 ++voice_frame_count_;
48 } 48 }
49 virtual void OnVoiceMute(uint32 ssrc, bool muted) {} 49 virtual void OnVoiceMute(uint32_t ssrc, bool muted) {}
50 virtual void OnVideoMute(uint32 ssrc, bool muted) {} 50 virtual void OnVideoMute(uint32_t ssrc, bool muted) {}
51 51
52 int voice_frame_count() const { return voice_frame_count_; } 52 int voice_frame_count() const { return voice_frame_count_; }
53 53
54 private: 54 private:
55 // TODO(janahan): make is a map so that we can multiple ssrcs 55 // TODO(janahan): make is a map so that we can multiple ssrcs
56 int voice_frame_count_; 56 int voice_frame_count_;
57 }; 57 };
58 58
59 } // namespace cricket 59 } // namespace cricket
60 60
61 #endif // TALK_MEDIA_BASE_FAKEMEDIAPROCESSOR_H_ 61 #endif // TALK_MEDIA_BASE_FAKEMEDIAPROCESSOR_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698