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

Side by Side Diff: voice_engine/shared_data.h

Issue 3015553002: Remove voe::OutputMixer and AudioConferenceMixer. (Closed)
Patch Set: remove conference mixer from presubmit.py Created 3 years, 3 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 | « voice_engine/output_mixer.cc ('k') | voice_engine/shared_data.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 * 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 13 matching lines...) Expand all
24 #include "voice_engine/channel_manager.h" 24 #include "voice_engine/channel_manager.h"
25 #include "voice_engine/statistics.h" 25 #include "voice_engine/statistics.h"
26 #include "voice_engine/voice_engine_defines.h" 26 #include "voice_engine/voice_engine_defines.h"
27 27
28 class ProcessThread; 28 class ProcessThread;
29 29
30 namespace webrtc { 30 namespace webrtc {
31 namespace voe { 31 namespace voe {
32 32
33 class TransmitMixer; 33 class TransmitMixer;
34 class OutputMixer;
35 34
36 class SharedData 35 class SharedData
37 { 36 {
38 public: 37 public:
39 // Public accessors. 38 // Public accessors.
40 uint32_t instance_id() const { return _instanceId; } 39 uint32_t instance_id() const { return _instanceId; }
41 Statistics& statistics() { return _engineStatistics; } 40 Statistics& statistics() { return _engineStatistics; }
42 ChannelManager& channel_manager() { return _channelManager; } 41 ChannelManager& channel_manager() { return _channelManager; }
43 AudioDeviceModule* audio_device() { return _audioDevicePtr.get(); } 42 AudioDeviceModule* audio_device() { return _audioDevicePtr.get(); }
44 void set_audio_device( 43 void set_audio_device(
45 const rtc::scoped_refptr<AudioDeviceModule>& audio_device); 44 const rtc::scoped_refptr<AudioDeviceModule>& audio_device);
46 void set_audio_processing(AudioProcessing* audio_processing); 45 void set_audio_processing(AudioProcessing* audio_processing);
47 TransmitMixer* transmit_mixer() { return _transmitMixerPtr; } 46 TransmitMixer* transmit_mixer() { return _transmitMixerPtr; }
48 OutputMixer* output_mixer() { return _outputMixerPtr; }
49 rtc::CriticalSection* crit_sec() { return &_apiCritPtr; } 47 rtc::CriticalSection* crit_sec() { return &_apiCritPtr; }
50 ProcessThread* process_thread() { return _moduleProcessThreadPtr.get(); } 48 ProcessThread* process_thread() { return _moduleProcessThreadPtr.get(); }
51 rtc::TaskQueue* encoder_queue(); 49 rtc::TaskQueue* encoder_queue();
52 50
53 int NumOfSendingChannels(); 51 int NumOfSendingChannels();
54 int NumOfPlayingChannels(); 52 int NumOfPlayingChannels();
55 53
56 // Convenience methods for calling statistics().SetLastError(). 54 // Convenience methods for calling statistics().SetLastError().
57 void SetLastError(int32_t error) const; 55 void SetLastError(int32_t error) const;
58 void SetLastError(int32_t error, TraceLevel level) const; 56 void SetLastError(int32_t error, TraceLevel level) const;
59 void SetLastError(int32_t error, TraceLevel level, 57 void SetLastError(int32_t error, TraceLevel level,
60 const char* msg) const; 58 const char* msg) const;
61 59
62 protected: 60 protected:
63 rtc::ThreadChecker construction_thread_; 61 rtc::ThreadChecker construction_thread_;
64 const uint32_t _instanceId; 62 const uint32_t _instanceId;
65 rtc::CriticalSection _apiCritPtr; 63 rtc::CriticalSection _apiCritPtr;
66 ChannelManager _channelManager; 64 ChannelManager _channelManager;
67 Statistics _engineStatistics; 65 Statistics _engineStatistics;
68 rtc::scoped_refptr<AudioDeviceModule> _audioDevicePtr; 66 rtc::scoped_refptr<AudioDeviceModule> _audioDevicePtr;
69 OutputMixer* _outputMixerPtr;
70 TransmitMixer* _transmitMixerPtr; 67 TransmitMixer* _transmitMixerPtr;
71 std::unique_ptr<ProcessThread> _moduleProcessThreadPtr; 68 std::unique_ptr<ProcessThread> _moduleProcessThreadPtr;
72 // |encoder_queue| is defined last to ensure all pending tasks are cancelled 69 // |encoder_queue| is defined last to ensure all pending tasks are cancelled
73 // and deleted before any other members. 70 // and deleted before any other members.
74 rtc::TaskQueue encoder_queue_ RTC_ACCESS_ON(construction_thread_); 71 rtc::TaskQueue encoder_queue_ RTC_ACCESS_ON(construction_thread_);
75 72
76 SharedData(); 73 SharedData();
77 virtual ~SharedData(); 74 virtual ~SharedData();
78 }; 75 };
79 76
80 } // namespace voe 77 } // namespace voe
81 } // namespace webrtc 78 } // namespace webrtc
82 #endif // VOICE_ENGINE_SHARED_DATA_H_ 79 #endif // VOICE_ENGINE_SHARED_DATA_H_
OLDNEW
« no previous file with comments | « voice_engine/output_mixer.cc ('k') | voice_engine/shared_data.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698