[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[pygame] sndarray bug



there seems to be a bug in sndarray, here's my script:

import pygame
pygame.init()
sound=pygame.mixer.Sound('foo.wav')
sound_array=pygame.sndarray.array(sound)
newsound=pygame.sndarray.make_sound(sound_array)

and I get: 
Traceback (most recent call last):
  File "snd.py", line 5, in ?
    newsound=pygame.sndarray.make_sound(sound_array)
ValueError: Invalid array datatype for sound

same thing happens if I try to make_sound() my own Numeric array.

I've tried it on 2 platforms:
windows 2000, python 2.2.1, pygame 1.5.3
linux, python 2.2.2, pygame 1.5.3
____________________________________
pygame mailing list
pygame-users@seul.org
http://pygame.seul.org