[Twisted-Python] Re: PyMedia & Tk - based mp3 sound recorder

Petri Savolainen petri.savolainen at iki.fi
Mon Nov 29 12:05:09 EST 2004


Itamar Shtull-Trauring wrote:
> On Mon, 2004-11-29 at 16:55 +0200, Petri Savolainen wrote:
> 
> 
>>I've added a very simple Tk-base GUI using twisted, using 
>>task.LoopingCall to drive the recorder loop that reads chunks data from 
>>sound device and encodes them.
> 
> 
> LoopingCall has a max resolution dependent on the clock resolution. E.g.
> on Linux 2.6 LoopingCall is good up to 1ms resolution (0.001 seconds),
> on 2.4 by default 10ms and 2ms on redhat boxes, but that's about it.

Good to know - I was wondering what's the maximum. I've tried quite a 
few different values for the resolution, ranging from 0.05 to about 
0.00001 or so, with no significant variation to audio quality.

  Petri





More information about the Twisted-Python mailing list