Fixed trunacated trace problem in WebRTC. http://b.corp.google.com/issue?id=5607856
Review URL: https://webrtc-codereview.appspot.com/508004 git-svn-id: http://webrtc.googlecode.com/svn/trunk@2096 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
parent
f3794f8e5a
commit
99ac3f7be5
@ -2627,7 +2627,7 @@ void AudioDeviceWindowsWave::TraceSupportFlags(DWORD dwSupport) const
|
||||
StringCchCat(buf, 256, TEXT("(SAMPLEACCURATE)"));
|
||||
}
|
||||
|
||||
WEBRTC_TRACE(kTraceInfo, kTraceAudioDevice, _id, "%s", buf);
|
||||
WEBRTC_TRACE(kTraceInfo, kTraceAudioDevice, _id, "%S", buf);
|
||||
}
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
@ -2642,7 +2642,7 @@ void AudioDeviceWindowsWave::TraceWaveInError(MMRESULT error) const
|
||||
StringCchPrintf(buf, MAXERRORLENGTH, TEXT("Error details: "));
|
||||
waveInGetErrorText(error, msg, MAXERRORLENGTH);
|
||||
StringCchCat(buf, MAXERRORLENGTH, msg);
|
||||
WEBRTC_TRACE(kTraceInfo, kTraceAudioDevice, _id, "%s", buf);
|
||||
WEBRTC_TRACE(kTraceInfo, kTraceAudioDevice, _id, "%S", buf);
|
||||
}
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
@ -2657,7 +2657,7 @@ void AudioDeviceWindowsWave::TraceWaveOutError(MMRESULT error) const
|
||||
StringCchPrintf(buf, MAXERRORLENGTH, TEXT("Error details: "));
|
||||
waveOutGetErrorText(error, msg, MAXERRORLENGTH);
|
||||
StringCchCat(buf, MAXERRORLENGTH, msg);
|
||||
WEBRTC_TRACE(kTraceInfo, kTraceAudioDevice, _id, "%s", buf);
|
||||
WEBRTC_TRACE(kTraceInfo, kTraceAudioDevice, _id, "%S", buf);
|
||||
}
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
@ -2964,7 +2964,7 @@ WebRtc_Word32 AudioDeviceWindowsWave::GetPlayoutBufferDelay(WebRtc_UWord32& writ
|
||||
if (_no_of_msecleft_warnings%20==0)
|
||||
{
|
||||
StringCchPrintf(infoStr, 300, TEXT("writtenSamples=%i, playedSamples=%i, msecInPlayoutBuffer=%i, ms_Header=%i"), writtenSamples, playedSamples, msecInPlayoutBuffer, ms_Header);
|
||||
WEBRTC_TRACE(kTraceWarning, kTraceUtility, _id, (const char*)infoStr);
|
||||
WEBRTC_TRACE(kTraceWarning, kTraceUtility, _id, "%S", infoStr);
|
||||
}
|
||||
_no_of_msecleft_warnings++;
|
||||
}
|
||||
@ -2983,7 +2983,7 @@ WebRtc_Word32 AudioDeviceWindowsWave::GetPlayoutBufferDelay(WebRtc_UWord32& writ
|
||||
TCHAR str[300];
|
||||
StringCchPrintf(str, 300, TEXT("_no_of_msecleft_warnings=%i, msecInPlayoutBuffer=%i ms_Header=%i (minBuffer=%i buffersize=%i writtenSamples=%i playedSamples=%i)"),
|
||||
_no_of_msecleft_warnings, msecInPlayoutBuffer, ms_Header, _minPlayBufDelay, _playBufDelay, writtenSamples, playedSamples);
|
||||
WEBRTC_TRACE(kTraceWarning, kTraceUtility, _id, (const char*)str);
|
||||
WEBRTC_TRACE(kTraceWarning, kTraceUtility, _id, "%S", str);
|
||||
}
|
||||
_no_of_msecleft_warnings++;
|
||||
ms_Header -= 6; // Round off as we only have 10ms resolution + Header info is usually slightly delayed compared to GetPosition
|
||||
|
Loading…
x
Reference in New Issue
Block a user