On, Tue Feb 19, 2008, Lenard Lindstrom wrote:
[...]
[Broken Sound creation from file objects]
> The following changes to examples\sound.py confirm it.
>
> file = open(os.path.join('data', 'secosmic_lo.wav'), 'rb')
> try:
> sound = mixer.Sound(file)
> finally:
> file.close()
>
> Running the modified sound.py raises an exception:
>
> Traceback (most recent call last):
> File "sound.py", line 21, in <module>
> sound = mixer.Sound(file)
> TypeError: expected a readable buffer object
Finally fixed in rev. 1123. Thanks to you both pointing me to it.
Regards
Marcus
Attachment:
pgpW9VzVqHyhs.pgp
Description: PGP signature