| 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 |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 44 static void Destroy(TransmitMixer*& mixer); | 44 static void Destroy(TransmitMixer*& mixer); |
| 45 | 45 |
| 46 int32_t SetEngineInformation(ProcessThread& processThread, | 46 int32_t SetEngineInformation(ProcessThread& processThread, |
| 47 Statistics& engineStatistics, | 47 Statistics& engineStatistics, |
| 48 ChannelManager& channelManager); | 48 ChannelManager& channelManager); |
| 49 | 49 |
| 50 int32_t SetAudioProcessingModule( | 50 int32_t SetAudioProcessingModule( |
| 51 AudioProcessing* audioProcessingModule); | 51 AudioProcessing* audioProcessingModule); |
| 52 | 52 |
| 53 int32_t PrepareDemux(const void* audioSamples, | 53 int32_t PrepareDemux(const void* audioSamples, |
| 54 uint32_t nSamples, | 54 size_t nSamples, |
| 55 uint8_t nChannels, | 55 uint8_t nChannels, |
| 56 uint32_t samplesPerSec, | 56 uint32_t samplesPerSec, |
| 57 uint16_t totalDelayMS, | 57 uint16_t totalDelayMS, |
| 58 int32_t clockDrift, | 58 int32_t clockDrift, |
| 59 uint16_t currentMicLevel, | 59 uint16_t currentMicLevel, |
| 60 bool keyPressed); | 60 bool keyPressed); |
| 61 | 61 |
| 62 | 62 |
| 63 int32_t DemuxAndMix(); | 63 int32_t DemuxAndMix(); |
| 64 // Used by the Chrome to pass the recording data to the specific VoE | 64 // Used by the Chrome to pass the recording data to the specific VoE |
| (...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 166 bool IsStereoChannelSwappingEnabled(); | 166 bool IsStereoChannelSwappingEnabled(); |
| 167 | 167 |
| 168 private: | 168 private: |
| 169 TransmitMixer(uint32_t instanceId); | 169 TransmitMixer(uint32_t instanceId); |
| 170 | 170 |
| 171 // Gets the maximum sample rate and number of channels over all currently | 171 // Gets the maximum sample rate and number of channels over all currently |
| 172 // sending codecs. | 172 // sending codecs. |
| 173 void GetSendCodecInfo(int* max_sample_rate, int* max_channels); | 173 void GetSendCodecInfo(int* max_sample_rate, int* max_channels); |
| 174 | 174 |
| 175 void GenerateAudioFrame(const int16_t audioSamples[], | 175 void GenerateAudioFrame(const int16_t audioSamples[], |
| 176 int nSamples, | 176 size_t nSamples, |
| 177 int nChannels, | 177 int nChannels, |
| 178 int samplesPerSec); | 178 int samplesPerSec); |
| 179 int32_t RecordAudioToFile(uint32_t mixingFrequency); | 179 int32_t RecordAudioToFile(uint32_t mixingFrequency); |
| 180 | 180 |
| 181 int32_t MixOrReplaceAudioWithFile( | 181 int32_t MixOrReplaceAudioWithFile( |
| 182 int mixingFrequency); | 182 int mixingFrequency); |
| 183 | 183 |
| 184 void ProcessAudio(int delay_ms, int clock_drift, int current_mic_level, | 184 void ProcessAudio(int delay_ms, int clock_drift, int current_mic_level, |
| 185 bool key_pressed); | 185 bool key_pressed); |
| 186 | 186 |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 230 bool stereo_codec_; | 230 bool stereo_codec_; |
| 231 bool swap_stereo_channels_; | 231 bool swap_stereo_channels_; |
| 232 rtc::scoped_ptr<int16_t[]> mono_buffer_; | 232 rtc::scoped_ptr<int16_t[]> mono_buffer_; |
| 233 }; | 233 }; |
| 234 | 234 |
| 235 } // namespace voe | 235 } // namespace voe |
| 236 | 236 |
| 237 } // namespace webrtc | 237 } // namespace webrtc |
| 238 | 238 |
| 239 #endif // WEBRTC_VOICE_ENGINE_TRANSMIT_MIXER_H | 239 #endif // WEBRTC_VOICE_ENGINE_TRANSMIT_MIXER_H |
| OLD | NEW |