Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 /* | 1 /* |
| 2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. |
| 3 * | 3 * |
| 4 * Use of this source code is governed by a BSD-style license | 4 * Use of this source code is governed by a BSD-style license |
| 5 * that can be found in the LICENSE file in the root of the source | 5 * that can be found in the LICENSE file in the root of the source |
| 6 * tree. An additional intellectual property rights grant can be found | 6 * tree. An additional intellectual property rights grant can be found |
| 7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
| 8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
| 9 */ | 9 */ |
| 10 | 10 |
| 11 #ifndef WEBRTC_VOICE_ENGINE_OUTPUT_MIXER_H_ | 11 #ifndef WEBRTC_VOICE_ENGINE_OUTPUT_MIXER_H_ |
| 12 #define WEBRTC_VOICE_ENGINE_OUTPUT_MIXER_H_ | 12 #define WEBRTC_VOICE_ENGINE_OUTPUT_MIXER_H_ |
| 13 | 13 |
| 14 #include <memory> | |
| 15 | |
| 14 #include "webrtc/base/criticalsection.h" | 16 #include "webrtc/base/criticalsection.h" |
| 15 #include "webrtc/common_audio/resampler/include/push_resampler.h" | 17 #include "webrtc/common_audio/resampler/include/push_resampler.h" |
| 16 #include "webrtc/common_types.h" | 18 #include "webrtc/common_types.h" |
| 17 #include "webrtc/modules/audio_conference_mixer/include/audio_conference_mixer.h " | 19 #include "webrtc/modules/audio_conference_mixer/include/audio_conference_mixer.h " |
| 18 #include "webrtc/modules/audio_conference_mixer/include/audio_conference_mixer_d efines.h" | 20 #include "webrtc/modules/audio_conference_mixer/include/audio_conference_mixer_d efines.h" |
| 19 #include "webrtc/modules/utility/include/file_recorder.h" | 21 #include "webrtc/modules/utility/include/file_recorder.h" |
| 20 #include "webrtc/voice_engine/level_indicator.h" | 22 #include "webrtc/voice_engine/level_indicator.h" |
| 21 #include "webrtc/voice_engine/voice_engine_defines.h" | 23 #include "webrtc/voice_engine/voice_engine_defines.h" |
| 22 | 24 |
| 23 namespace webrtc { | 25 namespace webrtc { |
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 97 void RecordFileEnded(int32_t id); | 99 void RecordFileEnded(int32_t id); |
| 98 | 100 |
| 99 private: | 101 private: |
| 100 OutputMixer(uint32_t instanceId); | 102 OutputMixer(uint32_t instanceId); |
| 101 | 103 |
| 102 // uses | 104 // uses |
| 103 Statistics* _engineStatisticsPtr; | 105 Statistics* _engineStatisticsPtr; |
| 104 AudioProcessing* _audioProcessingModulePtr; | 106 AudioProcessing* _audioProcessingModulePtr; |
| 105 | 107 |
| 106 rtc::CriticalSection _callbackCritSect; | 108 rtc::CriticalSection _callbackCritSect; |
| 107 // protect the _outputFileRecorderPtr and _outputFileRecording | 109 // Protects output_file_recorder_ and _outputFileRecording. |
| 108 rtc::CriticalSection _fileCritSect; | 110 rtc::CriticalSection _fileCritSect; |
| 109 AudioConferenceMixer& _mixerModule; | 111 AudioConferenceMixer& _mixerModule; |
| 110 AudioFrame _audioFrame; | 112 AudioFrame _audioFrame; |
| 111 // Converts mixed audio to the audio device output rate. | 113 // Converts mixed audio to the audio device output rate. |
| 112 PushResampler<int16_t> resampler_; | 114 PushResampler<int16_t> resampler_; |
| 113 // Converts mixed audio to the audio processing rate. | 115 // Converts mixed audio to the audio processing rate. |
| 114 PushResampler<int16_t> audioproc_resampler_; | 116 PushResampler<int16_t> audioproc_resampler_; |
| 115 AudioLevel _audioLevel; // measures audio level for the combined signal | 117 AudioLevel _audioLevel; // measures audio level for the combined signal |
| 116 int _instanceId; | 118 int _instanceId; |
| 117 VoEMediaProcess* _externalMediaCallbackPtr; | 119 VoEMediaProcess* _externalMediaCallbackPtr; |
| 118 bool _externalMedia; | 120 bool _externalMedia; |
| 119 float _panLeft; | 121 float _panLeft; |
| 120 float _panRight; | 122 float _panRight; |
| 121 int _mixingFrequencyHz; | 123 int _mixingFrequencyHz; |
| 122 FileRecorder* _outputFileRecorderPtr; | 124 std::unique_ptr<FileRecorder> output_file_recorder_; |
|
ossu
2016/08/17 11:09:06
Should this have some sort of annotation if it's b
kwiberg-webrtc
2016/08/17 12:27:39
Yes.
| |
| 123 bool _outputFileRecording; | 125 bool _outputFileRecording; |
| 124 }; | 126 }; |
| 125 | 127 |
| 126 } // namespace voe | 128 } // namespace voe |
| 127 | 129 |
| 128 } // namespace werbtc | 130 } // namespace werbtc |
| 129 | 131 |
| 130 #endif // VOICE_ENGINE_OUTPUT_MIXER_H_ | 132 #endif // VOICE_ENGINE_OUTPUT_MIXER_H_ |
| OLD | NEW |