[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[pygame] sound_array_demos.py error



I encountered a suspicious error in the sound_array_demos.py example. Here's the output:

Using numeric array package
mixer.get_init (22050, -16, 2)
------------------------------

loading sound
------------------------------
start positions
------------------------------
sound.get_length 0.338775515556
sound2.get_length 0.0
waiting 2 seconds
playing original sound
waiting 2 seconds
------------------------------
echoing
------------------------------
SHAPE1: (7470, 2)
26145
size (33615, 2)
(33615, 2)
Traceback (most recent call last):
  File "sound_array_demos.py", line 294, in <module>
    main()
  File "sound_array_demos.py", line 247, in main
    sound2 = make_echo(sound, samples_per_second)
  File "sound_array_demos.py", line 88, in make_echo
    myarr[incr:gap+incr] += a1>>1
TypeError: return array has incorrect type

Is anybody getting this same error, or is it just me?

Evan Kroske