Print the debug output only for the first channel,
more channels don't add more information. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38447 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -130,17 +130,20 @@ MixerInput::GetMixerChannelInfo(int mixerChannel, int64 framepos,
|
|||||||
if (!fEnabled)
|
if (!fEnabled)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
#if 1
|
#if DEBUG
|
||||||
if (time < (fLastDataAvailableTime - duration_for_frames(
|
if (time < (fLastDataAvailableTime - duration_for_frames(
|
||||||
fMixBufferFrameRate, fMixBufferFrameCount))
|
fMixBufferFrameRate, fMixBufferFrameCount))
|
||||||
|| (time + duration_for_frames(fMixBufferFrameRate,
|
|| (time + duration_for_frames(fMixBufferFrameRate,
|
||||||
fDebugMixBufferFrames)) >= fLastDataAvailableTime) {
|
fDebugMixBufferFrames)) >= fLastDataAvailableTime) {
|
||||||
ERROR("MixerInput::GetMixerChannelInfo: reading wrong data, have %Ld "
|
// Print this error for the first channel only.
|
||||||
"to %Ld, reading from %Ld to %Ld\n",
|
if (mixerChannel == 0) {
|
||||||
fLastDataAvailableTime - duration_for_frames(fMixBufferFrameRate,
|
ERROR("MixerInput::GetMixerChannelInfo: reading wrong data, have %Ld "
|
||||||
fMixBufferFrameCount), fLastDataAvailableTime, time,
|
"to %Ld, reading from %Ld to %Ld\n",
|
||||||
time + duration_for_frames(fMixBufferFrameRate,
|
fLastDataAvailableTime - duration_for_frames(fMixBufferFrameRate,
|
||||||
fDebugMixBufferFrames));
|
fMixBufferFrameCount), fLastDataAvailableTime, time,
|
||||||
|
time + duration_for_frames(fMixBufferFrameRate,
|
||||||
|
fDebugMixBufferFrames));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user