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

Unified Diff: webrtc/voice_engine/shared_data.cc

Issue 2665693002: Moves channel-dependent audio input processing to separate encoder task queue (Closed)
Patch Set: nit Created 3 years, 9 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 side-by-side diff with in-line comments
Download patch
Index: webrtc/voice_engine/shared_data.cc
diff --git a/webrtc/voice_engine/shared_data.cc b/webrtc/voice_engine/shared_data.cc
index 57a1a59b0de3d9515c95bb5cfa48ee625d1b3184..fb997cb882419263f3aa0045ba2ee52e055a9e27 100644
--- a/webrtc/voice_engine/shared_data.cc
+++ b/webrtc/voice_engine/shared_data.cc
@@ -16,6 +16,8 @@
#include "webrtc/voice_engine/output_mixer.h"
#include "webrtc/voice_engine/transmit_mixer.h"
+#include "webrtc/base/logging.h"
+
namespace webrtc {
namespace voe {
@@ -27,23 +29,22 @@ SharedData::SharedData()
_channelManager(_gInstanceCounter),
_engineStatistics(_gInstanceCounter),
_audioDevicePtr(NULL),
- _moduleProcessThreadPtr(
- ProcessThread::Create("VoiceProcessThread")) {
- Trace::CreateTrace();
- if (OutputMixer::Create(_outputMixerPtr, _gInstanceCounter) == 0)
- {
- _outputMixerPtr->SetEngineInformation(_engineStatistics);
- }
- if (TransmitMixer::Create(_transmitMixerPtr, _gInstanceCounter) == 0)
- {
- _transmitMixerPtr->SetEngineInformation(*_moduleProcessThreadPtr,
- _engineStatistics,
- _channelManager);
- }
+ _moduleProcessThreadPtr(ProcessThread::Create("VoiceProcessThread")),
+ encoder_queue_("AudioEncoderQueue", rtc::TaskQueue::Priority::HIGH) {
+ LOG(INFO) << "___ctor";
+ Trace::CreateTrace();
+ if (OutputMixer::Create(_outputMixerPtr, _gInstanceCounter) == 0) {
+ _outputMixerPtr->SetEngineInformation(_engineStatistics);
+ }
+ if (TransmitMixer::Create(_transmitMixerPtr, _gInstanceCounter) == 0) {
+ _transmitMixerPtr->SetEngineInformation(*_moduleProcessThreadPtr,
+ _engineStatistics, _channelManager);
+ }
}
SharedData::~SharedData()
{
+ LOG(INFO) << "___dtor";
OutputMixer::Destroy(_outputMixerPtr);
TransmitMixer::Destroy(_transmitMixerPtr);
if (_audioDevicePtr) {

Powered by Google App Engine
This is Rietveld 408576698