[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-multimedia
Subject:    Re: noatun - playing too slowly
From:       "Jeff Tranter" <jefft () corel ! com>
Date:       2001-02-23 17:48:54
[Download RAW message or body]

After some more hints from Martin Vogt and investigation this is what I
have found so far:

- the zero filling code in DecoderBaseObject_impl::calculateBlock()
  is being called and seems to be responsible for the playback
  problem

- if I enable the FreeVerb effect either in noatun or artscontrol,
  the problem goes away (even after the effect is disabled)

- tracing through method fillArts() did not show anything that
   looked unusual to me. Here are some of the variables that
   I printed during execution:

samples: 1024
wav_samplingRate: 44100
wav_sampleWidth: 32
wav_ChannelCount: 2
samplingFloatRate: 44100.0
bufferSize: 32768
diff: 0.0

- in method calculateBlock(), the only difference I notice between
  good and bad output is that for good output getBufferFillgrade()
  always returns 32768, and when the problem is occurring I get
  varying values from 0 to 32768. When it falls to 8192 or less the
  zero filling code is activated. This experimental hack seemed to
  cause it to playback properly:

--- decoderBaseObject_impl.cpp.orig     Fri Feb 23 12:45:28 2001
+++ decoderBaseObject_impl.cpp  Fri Feb 23 12:44:53 2001
@@ -385,7 +385,7 @@
 
       lenough=true;
     }
-    if (outputStream->getBufferFillgrade() > 8192) {
+    if (outputStream->getBufferFillgrade() >= 0) {
       lenough=true;
     }
     if ( ((lenough) || _blocking) && (_state == posPlaying) ) { 

Any ideas on where to look next?
_______________________________________________
Kde-multimedia mailing list
Kde-multimedia@master.kde.org
http://master.kde.org/mailman/listinfo/kde-multimedia

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic