Play MP3s from Windows

Tim Harig usernet at ilthio.net
Fri Jun 19 20:07:41 EDT 2009


On 2009-06-19, Arlie <arlie.c at gmail.com> wrote:
> print 'Duree du fichier : ',buf,' millisecondes'

You can obviously make sure that 'buf' can be accessed as a string.

> time.sleep(int(buf)/1000)

The error seems to be having issues converting buf to an int.  Could you
possibly convert it to a string before converting it to an int?

time.sleep(int(str(buf))/1000)



More information about the Python-list mailing list