AudioMixer: Replace debug_printf with TRACE

This commit is contained in:
Dario Casalinuovo
2016-01-19 22:43:25 +01:00
parent 1fe3cb8742
commit 08a65695bb
@@ -326,11 +326,11 @@ AudioMixer::HandleInputBuffer(BBuffer* buffer, bigtime_t lateness)
variation = lateness-fLastLateness;
if (variation > kMaxJitter) {
debug_printf("AudioMixer: Dequeued input buffer %" B_PRIdBIGTIME
TRACE("AudioMixer: Dequeued input buffer %" B_PRIdBIGTIME
" usec late\n", lateness);
if (RunMode() == B_DROP_DATA || RunMode() == B_DECREASE_PRECISION
|| RunMode() == B_INCREASE_LATENCY) {
debug_printf("AudioMixer: sending notify\n");
TRACE("AudioMixer: sending notify\n");
// Build a media_source out of the header data
media_source source = media_source::null;
@@ -340,7 +340,7 @@ AudioMixer::HandleInputBuffer(BBuffer* buffer, bigtime_t lateness)
NotifyLateProducer(source, variation, TimeSource()->Now());
if (RunMode() == B_DROP_DATA) {
debug_printf("AudioMixer: dropping buffer\n");
TRACE("AudioMixer: dropping buffer\n");
return;
}
}
@@ -1043,7 +1043,7 @@ AudioMixer::LateNoticeReceived(const media_source& what, bigtime_t howMuch,
fLastLateNotification = TimeSource()->Now() + howMuch;
debug_printf("AudioMixer: increasing internal latency to %"
TRACE("AudioMixer: increasing internal latency to %"
B_PRIdBIGTIME " usec\n", fInternalLatency);
SetEventLatency(fDownstreamLatency + fInternalLatency);