diff --git a/audioraw.py b/audioraw.py index db53adb..0ce76fd 100644 --- a/audioraw.py +++ b/audioraw.py @@ -50,6 +50,9 @@ class DecoderProducer: consumer.registerProducer(self, False) self.resumeProducing() + def __repr__(self): + return '' % (`self.decoder`, self.tbytes, self.skipbytes) + def pauseProducing(self): # XXX - bug in Twisted 8.2.0 on pipelined requests this is # called: http://twistedmatrix.com/trac/ticket/3919 @@ -57,7 +60,7 @@ class DecoderProducer: def resumeProducing(self): #print 'DPrP', `self` - r = self.decoder.read(oneblk=True) + r = self.decoder.read(256*1024) if r: #print 'DPrP:', len(r) if self.skipbytes: