wave
Gabriel Genellina
gagsl-py at yahoo.com.ar
Mon Feb 5 18:46:10 EST 2007
En Sat, 03 Feb 2007 17:00:39 -0300, Silver Rock <silverfrequent at gmail.com>
escribió:
> supose i´ve opened a sound with the wave module:
>
>>>> import wave
>>>> sound=wave.open(filename,'rb')
>
> now this is strange:
>
>>>> sound.getnframes() != len(sound.readframes(sound.getnframes())
> True
>
> Why so?
readframes returns the bytes read, as a string, not a list of frames.
(It's not like "readlines")
--
Gabriel Genellina
More information about the Python-list
mailing list