From 23b67693da67bd5827b692d335f582febf0449af Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Tue, 1 Jun 2004 03:42:52 +0000 Subject: [PATCH] add temp debug --- stepmania/src/arch/Sound/ALSA9Helpers.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/stepmania/src/arch/Sound/ALSA9Helpers.cpp b/stepmania/src/arch/Sound/ALSA9Helpers.cpp index 57e6f66b1a..d90782bcb8 100644 --- a/stepmania/src/arch/Sound/ALSA9Helpers.cpp +++ b/stepmania/src/arch/Sound/ALSA9Helpers.cpp @@ -307,6 +307,9 @@ int Alsa9Buf::GetNumFramesToFill() /* Number of frames that don't have data, that are within the writeahead: */ snd_pcm_sframes_t unfilled_frames = clamp( ActualWriteahead - filled_frames, 0l, (snd_pcm_sframes_t)ActualWriteahead ); + LOG->Trace( "total_fr: %i; avail_fr: %i; filled_fr: %i; ActualWr %i; chunksize %i; unfilled_frames %i ", + total_frames, avail_frames, filled_frames, ActualWriteahead, chunksize, unfilled_frames ); + /* If we have less than a chunk empty, don't fill at all. Otherwise, we'll * spend a lot of CPU filling in partial chunks, instead of waiting for some * sound to play and then filling a whole chunk at once. */