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

Unified Diff: webrtc/voice_engine/voe_volume_control_impl.cc

Issue 1347353004: Reduce LS_INFO spam from voice_engine/. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « webrtc/voice_engine/voe_video_sync_impl.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/voice_engine/voe_volume_control_impl.cc
diff --git a/webrtc/voice_engine/voe_volume_control_impl.cc b/webrtc/voice_engine/voe_volume_control_impl.cc
index 3d8a7a832dd17fbc2943ceb0d23c50bad55a0aaf..d0f3de1e0570bd2d65e72f91fdcb4a2081d40d2b 100644
--- a/webrtc/voice_engine/voe_volume_control_impl.cc
+++ b/webrtc/voice_engine/voe_volume_control_impl.cc
@@ -83,8 +83,6 @@ int VoEVolumeControlImpl::SetSpeakerVolume(unsigned int volume) {
}
int VoEVolumeControlImpl::GetSpeakerVolume(unsigned int& volume) {
- WEBRTC_TRACE(kTraceApiCall, kTraceVoice, VoEId(_shared->instance_id(), -1),
- "GetSpeakerVolume()");
if (!_shared->statistics().Initialized()) {
_shared->SetLastError(VE_NOT_INITED, kTraceError);
@@ -111,8 +109,6 @@ int VoEVolumeControlImpl::GetSpeakerVolume(unsigned int& volume) {
volume =
(uint32_t)((spkrVol * kMaxVolumeLevel + (int)(maxVol / 2)) / (maxVol));
- WEBRTC_TRACE(kTraceStateInfo, kTraceVoice, VoEId(_shared->instance_id(), -1),
- "GetSpeakerVolume() => volume=%d", volume);
return 0;
}
@@ -169,9 +165,6 @@ int VoEVolumeControlImpl::SetMicVolume(unsigned int volume) {
}
int VoEVolumeControlImpl::GetMicVolume(unsigned int& volume) {
- WEBRTC_TRACE(kTraceApiCall, kTraceVoice, VoEId(_shared->instance_id(), -1),
- "GetMicVolume()");
-
if (!_shared->statistics().Initialized()) {
_shared->SetLastError(VE_NOT_INITED, kTraceError);
return -1;
@@ -200,9 +193,6 @@ int VoEVolumeControlImpl::GetMicVolume(unsigned int& volume) {
// Truncate the value to the kMaxVolumeLevel.
volume = kMaxVolumeLevel;
}
-
- WEBRTC_TRACE(kTraceStateInfo, kTraceVoice, VoEId(_shared->instance_id(), -1),
- "GetMicVolume() => volume=%d", volume);
return 0;
}
@@ -230,9 +220,6 @@ int VoEVolumeControlImpl::SetInputMute(int channel, bool enable) {
}
int VoEVolumeControlImpl::GetInputMute(int channel, bool& enabled) {
- WEBRTC_TRACE(kTraceApiCall, kTraceVoice, VoEId(_shared->instance_id(), -1),
- "GetInputMute(channel=%d)", channel);
-
if (!_shared->statistics().Initialized()) {
_shared->SetLastError(VE_NOT_INITED, kTraceError);
return -1;
@@ -249,31 +236,21 @@ int VoEVolumeControlImpl::GetInputMute(int channel, bool& enabled) {
}
enabled = channelPtr->Mute();
}
- WEBRTC_TRACE(kTraceStateInfo, kTraceVoice, VoEId(_shared->instance_id(), -1),
- "GetInputMute() => enabled = %d", (int)enabled);
return 0;
}
int VoEVolumeControlImpl::GetSpeechInputLevel(unsigned int& level) {
- WEBRTC_TRACE(kTraceApiCall, kTraceVoice, VoEId(_shared->instance_id(), -1),
- "GetSpeechInputLevel()");
-
if (!_shared->statistics().Initialized()) {
_shared->SetLastError(VE_NOT_INITED, kTraceError);
return -1;
}
int8_t currentLevel = _shared->transmit_mixer()->AudioLevel();
level = static_cast<unsigned int>(currentLevel);
- WEBRTC_TRACE(kTraceStateInfo, kTraceVoice, VoEId(_shared->instance_id(), -1),
- "GetSpeechInputLevel() => %d", level);
return 0;
}
int VoEVolumeControlImpl::GetSpeechOutputLevel(int channel,
unsigned int& level) {
- WEBRTC_TRACE(kTraceApiCall, kTraceVoice, VoEId(_shared->instance_id(), -1),
- "GetSpeechOutputLevel(channel=%d, level=?)", channel);
-
if (!_shared->statistics().Initialized()) {
_shared->SetLastError(VE_NOT_INITED, kTraceError);
return -1;
@@ -294,25 +271,17 @@ int VoEVolumeControlImpl::GetSpeechOutputLevel(int channel,
}
int VoEVolumeControlImpl::GetSpeechInputLevelFullRange(unsigned int& level) {
- WEBRTC_TRACE(kTraceApiCall, kTraceVoice, VoEId(_shared->instance_id(), -1),
- "GetSpeechInputLevelFullRange(level=?)");
-
if (!_shared->statistics().Initialized()) {
_shared->SetLastError(VE_NOT_INITED, kTraceError);
return -1;
}
int16_t currentLevel = _shared->transmit_mixer()->AudioLevelFullRange();
level = static_cast<unsigned int>(currentLevel);
- WEBRTC_TRACE(kTraceStateInfo, kTraceVoice, VoEId(_shared->instance_id(), -1),
- "GetSpeechInputLevelFullRange() => %d", level);
return 0;
}
int VoEVolumeControlImpl::GetSpeechOutputLevelFullRange(int channel,
unsigned int& level) {
- WEBRTC_TRACE(kTraceApiCall, kTraceVoice, VoEId(_shared->instance_id(), -1),
- "GetSpeechOutputLevelFullRange(channel=%d, level=?)", channel);
-
if (!_shared->statistics().Initialized()) {
_shared->SetLastError(VE_NOT_INITED, kTraceError);
return -1;
@@ -361,8 +330,6 @@ int VoEVolumeControlImpl::SetChannelOutputVolumeScaling(int channel,
int VoEVolumeControlImpl::GetChannelOutputVolumeScaling(int channel,
float& scaling) {
- WEBRTC_TRACE(kTraceApiCall, kTraceVoice, VoEId(_shared->instance_id(), -1),
- "GetChannelOutputVolumeScaling(channel=%d, scaling=?)", channel);
if (!_shared->statistics().Initialized()) {
_shared->SetLastError(VE_NOT_INITED, kTraceError);
return -1;
@@ -422,9 +389,6 @@ int VoEVolumeControlImpl::SetOutputVolumePan(int channel,
int VoEVolumeControlImpl::GetOutputVolumePan(int channel,
float& left,
float& right) {
- WEBRTC_TRACE(kTraceApiCall, kTraceVoice, VoEId(_shared->instance_id(), -1),
- "GetOutputVolumePan(channel=%d, left=?, right=?)", channel);
-
if (!_shared->statistics().Initialized()) {
_shared->SetLastError(VE_NOT_INITED, kTraceError);
return -1;
« no previous file with comments | « webrtc/voice_engine/voe_video_sync_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698