Any good donothing?

Dialtone Dialtone.NOSPAM.ME at aruba.it
Wed Apr 16 04:12:03 EDT 2003


* Gerhard Häring <gh at ghaering.de> [160403 00:37]:
> From what I remember other such solutions just use pipes to pipe the
> output of cdda2wav into the mp3 encoder. No synchronization problems,
> then.

Uhmmm... I tried to use pipes but I didn't managed it since it didn't
take the right input file to encode.

>> Is there any other way to make a do_nothing_for_some_time(n) function?
> 
> The sleep function from the time module does just this. I doubt it
> solves your problems, though. I'd look into pipes and try to use them
> using os.popen*. If you want to display the progress in a GUI, you might
> also want to select.select or select.poll on the file descriptor in
> order to keep the GUI smooth.

I didn't know select.select select.poll, I'll give them a try.

thanks for the infos.

-- 
try: troll.uses(Brain)
except TypeError, data: 
   troll.plonk()
Co-Responsabile Hardware Information & Technology http://hit.edengames.net




More information about the Python-list mailing list