| OLD | NEW |
| 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 Loading... |
| 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 308 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 452 std::vector<webrtc::RtpExtension> recv_rtp_extensions_; | 452 std::vector<webrtc::RtpExtension> recv_rtp_extensions_; |
| 453 | 453 |
| 454 // Do not lock this on the VoE media processor thread; potential for deadlock | 454 // Do not lock this on the VoE media processor thread; potential for deadlock |
| 455 // exists. | 455 // exists. |
| 456 mutable rtc::CriticalSection receive_channels_cs_; | 456 mutable rtc::CriticalSection receive_channels_cs_; |
| 457 }; | 457 }; |
| 458 | 458 |
| 459 } // namespace cricket | 459 } // namespace cricket |
| 460 | 460 |
| 461 #endif // TALK_MEDIA_WEBRTCVOICEENGINE_H_ | 461 #endif // TALK_MEDIA_WEBRTCVOICEENGINE_H_ |
| OLD | NEW |