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

Side by Side Diff: talk/media/webrtc/webrtcvoiceengine.h

Issue 1230503003: Update a ton of audio code to use size_t more correctly and in general reduce (Closed) Base URL: https://chromium.googlesource.com/external/webrtc@master
Patch Set: Resync Created 5 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
« no previous file with comments | « talk/media/webrtc/fakewebrtcvoiceengine.h ('k') | talk/media/webrtc/webrtcvoiceengine.cc » ('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 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 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
123 VoiceProcessor* voice_processor, 123 VoiceProcessor* voice_processor,
124 MediaProcessorDirection direction); 124 MediaProcessorDirection direction);
125 bool UnregisterProcessor(uint32 ssrc, 125 bool UnregisterProcessor(uint32 ssrc,
126 VoiceProcessor* voice_processor, 126 VoiceProcessor* voice_processor,
127 MediaProcessorDirection direction); 127 MediaProcessorDirection direction);
128 128
129 // Method from webrtc::VoEMediaProcess 129 // Method from webrtc::VoEMediaProcess
130 void Process(int channel, 130 void Process(int channel,
131 webrtc::ProcessingTypes type, 131 webrtc::ProcessingTypes type,
132 int16_t audio10ms[], 132 int16_t audio10ms[],
133 int length, 133 size_t length,
134 int sampling_freq, 134 int sampling_freq,
135 bool is_stereo) override; 135 bool is_stereo) override;
136 136
137 // For tracking WebRtc channels. Needed because we have to pause them 137 // For tracking WebRtc channels. Needed because we have to pause them
138 // all when switching devices. 138 // all when switching devices.
139 // May only be called by WebRtcVoiceMediaChannel. 139 // May only be called by WebRtcVoiceMediaChannel.
140 void RegisterChannel(WebRtcVoiceMediaChannel *channel); 140 void RegisterChannel(WebRtcVoiceMediaChannel *channel);
141 void UnregisterChannel(WebRtcVoiceMediaChannel *channel); 141 void UnregisterChannel(WebRtcVoiceMediaChannel *channel);
142 142
143 // Called by WebRtcVoiceMediaChannel to set a gain offset from 143 // Called by WebRtcVoiceMediaChannel to set a gain offset from
(...skipping 310 matching lines...) Expand 10 before | Expand all | Expand 10 after
454 std::vector<webrtc::RtpExtension> recv_rtp_extensions_; 454 std::vector<webrtc::RtpExtension> recv_rtp_extensions_;
455 455
456 // Do not lock this on the VoE media processor thread; potential for deadlock 456 // Do not lock this on the VoE media processor thread; potential for deadlock
457 // exists. 457 // exists.
458 mutable rtc::CriticalSection receive_channels_cs_; 458 mutable rtc::CriticalSection receive_channels_cs_;
459 }; 459 };
460 460
461 } // namespace cricket 461 } // namespace cricket
462 462
463 #endif // TALK_MEDIA_WEBRTCVOICEENGINE_H_ 463 #endif // TALK_MEDIA_WEBRTCVOICEENGINE_H_
OLDNEW
« no previous file with comments | « talk/media/webrtc/fakewebrtcvoiceengine.h ('k') | talk/media/webrtc/webrtcvoiceengine.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698