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

Side by Side Diff: talk/media/webrtc/fakewebrtcvoiceengine.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 unified diff | Download patch
« no previous file with comments | « talk/media/webrtc/fakewebrtcvideoengine.h ('k') | talk/media/webrtc/simulcast.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * libjingle 2 * libjingle
3 * Copyright 2010 Google Inc. 3 * Copyright 2010 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 228 matching lines...) Expand 10 before | Expand all | Expand 10 after
239 bool red; 239 bool red;
240 bool nack; 240 bool nack;
241 bool rx_agc_enabled; 241 bool rx_agc_enabled;
242 webrtc::AgcModes rx_agc_mode; 242 webrtc::AgcModes rx_agc_mode;
243 webrtc::AgcConfig rx_agc_config; 243 webrtc::AgcConfig rx_agc_config;
244 int cn8_type; 244 int cn8_type;
245 int cn16_type; 245 int cn16_type;
246 int dtmf_type; 246 int dtmf_type;
247 int red_type; 247 int red_type;
248 int nack_max_packets; 248 int nack_max_packets;
249 uint32 send_ssrc; 249 uint32_t send_ssrc;
250 int send_audio_level_ext_; 250 int send_audio_level_ext_;
251 int receive_audio_level_ext_; 251 int receive_audio_level_ext_;
252 int send_absolute_sender_time_ext_; 252 int send_absolute_sender_time_ext_;
253 int receive_absolute_sender_time_ext_; 253 int receive_absolute_sender_time_ext_;
254 int associate_send_channel; 254 int associate_send_channel;
255 DtmfInfo dtmf_info; 255 DtmfInfo dtmf_info;
256 std::vector<webrtc::CodecInst> recv_codecs; 256 std::vector<webrtc::CodecInst> recv_codecs;
257 webrtc::CodecInst send_codec; 257 webrtc::CodecInst send_codec;
258 webrtc::PacketTime last_rtp_packet_time; 258 webrtc::PacketTime last_rtp_packet_time;
259 std::list<std::string> packets; 259 std::list<std::string> packets;
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
292 // Ought to have all been deleted by the WebRtcVoiceMediaChannel 292 // Ought to have all been deleted by the WebRtcVoiceMediaChannel
293 // destructors, but just in case ... 293 // destructors, but just in case ...
294 for (std::map<int, Channel*>::const_iterator i = channels_.begin(); 294 for (std::map<int, Channel*>::const_iterator i = channels_.begin();
295 i != channels_.end(); ++i) { 295 i != channels_.end(); ++i) {
296 delete i->second; 296 delete i->second;
297 } 297 }
298 } 298 }
299 299
300 bool IsInited() const { return inited_; } 300 bool IsInited() const { return inited_; }
301 int GetLastChannel() const { return last_channel_; } 301 int GetLastChannel() const { return last_channel_; }
302 int GetChannelFromLocalSsrc(uint32 local_ssrc) const { 302 int GetChannelFromLocalSsrc(uint32_t local_ssrc) const {
303 for (std::map<int, Channel*>::const_iterator iter = channels_.begin(); 303 for (std::map<int, Channel*>::const_iterator iter = channels_.begin();
304 iter != channels_.end(); ++iter) { 304 iter != channels_.end(); ++iter) {
305 if (local_ssrc == iter->second->send_ssrc) 305 if (local_ssrc == iter->second->send_ssrc)
306 return iter->first; 306 return iter->first;
307 } 307 }
308 return -1; 308 return -1;
309 } 309 }
310 int GetNumChannels() const { return static_cast<int>(channels_.size()); } 310 int GetNumChannels() const { return static_cast<int>(channels_.size()); }
311 bool GetPlayout(int channel) { 311 bool GetPlayout(int channel) {
312 return channels_[channel]->playout; 312 return channels_[channel]->playout;
(...skipping 537 matching lines...) Expand 10 before | Expand all | Expand 10 after
850 block.extended_highest_sequence_number = kIntStatValue; 850 block.extended_highest_sequence_number = kIntStatValue;
851 receive_blocks->push_back(block); 851 receive_blocks->push_back(block);
852 } 852 }
853 return 0; 853 return 0;
854 } 854 }
855 WEBRTC_STUB(GetRTPStatistics, (int channel, unsigned int& averageJitterMs, 855 WEBRTC_STUB(GetRTPStatistics, (int channel, unsigned int& averageJitterMs,
856 unsigned int& maxJitterMs, 856 unsigned int& maxJitterMs,
857 unsigned int& discardedPackets)); 857 unsigned int& discardedPackets));
858 WEBRTC_FUNC(GetRTCPStatistics, (int channel, webrtc::CallStatistics& stats)) { 858 WEBRTC_FUNC(GetRTCPStatistics, (int channel, webrtc::CallStatistics& stats)) {
859 WEBRTC_CHECK_CHANNEL(channel); 859 WEBRTC_CHECK_CHANNEL(channel);
860 stats.fractionLost = static_cast<int16>(kIntStatValue); 860 stats.fractionLost = static_cast<int16_t>(kIntStatValue);
861 stats.cumulativeLost = kIntStatValue; 861 stats.cumulativeLost = kIntStatValue;
862 stats.extendedMax = kIntStatValue; 862 stats.extendedMax = kIntStatValue;
863 stats.jitterSamples = kIntStatValue; 863 stats.jitterSamples = kIntStatValue;
864 stats.rttMs = kIntStatValue; 864 stats.rttMs = kIntStatValue;
865 stats.bytesSent = kIntStatValue; 865 stats.bytesSent = kIntStatValue;
866 stats.packetsSent = kIntStatValue; 866 stats.packetsSent = kIntStatValue;
867 stats.bytesReceived = kIntStatValue; 867 stats.bytesReceived = kIntStatValue;
868 stats.packetsReceived = kIntStatValue; 868 stats.packetsReceived = kIntStatValue;
869 return 0; 869 return 0;
870 } 870 }
(...skipping 282 matching lines...) Expand 10 before | Expand all | Expand 10 after
1153 int playout_sample_rate_; 1153 int playout_sample_rate_;
1154 DtmfInfo dtmf_info_; 1154 DtmfInfo dtmf_info_;
1155 FakeAudioProcessing audio_processing_; 1155 FakeAudioProcessing audio_processing_;
1156 }; 1156 };
1157 1157
1158 #undef WEBRTC_CHECK_HEADER_EXTENSION_ID 1158 #undef WEBRTC_CHECK_HEADER_EXTENSION_ID
1159 1159
1160 } // namespace cricket 1160 } // namespace cricket
1161 1161
1162 #endif // TALK_SESSION_PHONE_FAKEWEBRTCVOICEENGINE_H_ 1162 #endif // TALK_SESSION_PHONE_FAKEWEBRTCVOICEENGINE_H_
OLDNEW
« no previous file with comments | « talk/media/webrtc/fakewebrtcvideoengine.h ('k') | talk/media/webrtc/simulcast.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698