Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 /* | 1 /* |
| 2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2016 The WebRTC project authors. All Rights Reserved. |
|
tommi
2016/07/08 12:24:17
copyright year of files that are not new in this c
aleloi
2016/07/08 12:57:40
Done.
| |
| 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_MODULES_AUDIO_MIXER_AUDIO_MIXER_H_ | 11 #ifndef WEBRTC_MODULES_AUDIO_MIXER_AUDIO_MIXER_H_ |
| 12 #define WEBRTC_MODULES_AUDIO_MIXER_AUDIO_MIXER_H_ | 12 #define WEBRTC_MODULES_AUDIO_MIXER_AUDIO_MIXER_H_ |
| (...skipping 12 matching lines...) Expand all Loading... | |
| 25 class AudioProcessing; | 25 class AudioProcessing; |
| 26 class FileWrapper; | 26 class FileWrapper; |
| 27 class VoEMediaProcess; | 27 class VoEMediaProcess; |
| 28 | 28 |
| 29 namespace voe { | 29 namespace voe { |
| 30 class Statistics; | 30 class Statistics; |
| 31 | 31 |
| 32 // Note: this class is in the process of being rewritten and merged | 32 // Note: this class is in the process of being rewritten and merged |
| 33 // with AudioConferenceMixer. Expect inheritance chains to be changed, | 33 // with AudioConferenceMixer. Expect inheritance chains to be changed, |
| 34 // member functions removed or renamed. | 34 // member functions removed or renamed. |
| 35 class AudioMixer : public OldAudioMixerOutputReceiver, public FileCallback { | 35 class AudioMixer : public FileCallback { |
| 36 public: | 36 public: |
| 37 static int32_t Create(AudioMixer*& mixer, uint32_t instanceId); // NOLINT | 37 static int32_t Create(AudioMixer*& mixer, uint32_t instanceId); // NOLINT |
| 38 | 38 |
| 39 static void Destroy(AudioMixer*& mixer); // NOLINT | 39 static void Destroy(AudioMixer*& mixer); // NOLINT |
| 40 | 40 |
| 41 int32_t SetEngineInformation(Statistics& engineStatistics); // NOLINT | 41 int32_t SetEngineInformation(Statistics& engineStatistics); // NOLINT |
| 42 | 42 |
| 43 int32_t SetAudioProcessingModule(AudioProcessing* audioProcessingModule); | 43 int32_t SetAudioProcessingModule(AudioProcessing* audioProcessingModule); |
| 44 | 44 |
| 45 // VoEExternalMedia | 45 // VoEExternalMedia |
| (...skipping 26 matching lines...) Expand all Loading... | |
| 72 int GetOutputVolumePan(float& left, float& right); // NOLINT | 72 int GetOutputVolumePan(float& left, float& right); // NOLINT |
| 73 | 73 |
| 74 // VoEFile | 74 // VoEFile |
| 75 int StartRecordingPlayout(const char* fileName, const CodecInst* codecInst); | 75 int StartRecordingPlayout(const char* fileName, const CodecInst* codecInst); |
| 76 | 76 |
| 77 int StartRecordingPlayout(OutStream* stream, const CodecInst* codecInst); | 77 int StartRecordingPlayout(OutStream* stream, const CodecInst* codecInst); |
| 78 int StopRecordingPlayout(); | 78 int StopRecordingPlayout(); |
| 79 | 79 |
| 80 virtual ~AudioMixer(); | 80 virtual ~AudioMixer(); |
| 81 | 81 |
| 82 // from AudioMixerOutputReceiver | |
| 83 virtual void NewMixedAudio(int32_t id, | |
| 84 const AudioFrame& generalAudioFrame, | |
| 85 const AudioFrame** uniqueAudioFrames, | |
| 86 uint32_t size); | |
| 87 | |
| 88 // For file recording | 82 // For file recording |
| 89 void PlayNotification(int32_t id, uint32_t durationMs); | 83 void PlayNotification(int32_t id, uint32_t durationMs); |
| 90 | 84 |
| 91 void RecordNotification(int32_t id, uint32_t durationMs); | 85 void RecordNotification(int32_t id, uint32_t durationMs); |
| 92 | 86 |
| 93 void PlayFileEnded(int32_t id); | 87 void PlayFileEnded(int32_t id); |
| 94 void RecordFileEnded(int32_t id); | 88 void RecordFileEnded(int32_t id); |
| 95 | 89 |
| 96 private: | 90 private: |
| 97 explicit AudioMixer(uint32_t instanceId); | 91 explicit AudioMixer(uint32_t instanceId); |
| (...skipping 20 matching lines...) Expand all Loading... | |
| 118 int _mixingFrequencyHz; | 112 int _mixingFrequencyHz; |
| 119 FileRecorder* _outputFileRecorderPtr; | 113 FileRecorder* _outputFileRecorderPtr; |
| 120 bool _outputFileRecording; | 114 bool _outputFileRecording; |
| 121 }; | 115 }; |
| 122 | 116 |
| 123 } // namespace voe | 117 } // namespace voe |
| 124 | 118 |
| 125 } // namespace webrtc | 119 } // namespace webrtc |
| 126 | 120 |
| 127 #endif // WEBRTC_MODULES_AUDIO_MIXER_AUDIO_MIXER_H_ | 121 #endif // WEBRTC_MODULES_AUDIO_MIXER_AUDIO_MIXER_H_ |
| OLD | NEW |