[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[pygame] sound_array_demos.py error
- To: pygame-users@xxxxxxxx
- Subject: [pygame] sound_array_demos.py error
- From: Evan Kroske <e.kroske@xxxxxxxxx>
- Date: Wed, 8 Jul 2009 14:30:17 -0400
- Delivered-to: archiver@xxxxxxxx
- Delivered-to: pygame-users-outgoing@xxxxxxxx
- Delivered-to: pygame-users@xxxxxxxx
- Delivery-date: Wed, 08 Jul 2009 14:35:26 -0400
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type; bh=mx5e4C7p6Keim7ObAJLuf9+aIk/sjTJ1TevtTYc58Y0=; b=tPV4RD/eLCLxliM4fMXJ0kjiKC7AiqTvqiCKyngQB0yRecTq1Gm029Nvv652KiryhG CfsgT2a8I506rEEhfaQ1uDePsCNJESRF4pki/4gGIjt/V3r3uRDrSSFXO4ofUFFjGp0B Z1ZUPwN+FGXM+fHb4LVMLjGmeeLO7vnJ6vSFw=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=Hp9nRt74HucGa8dpHXQXv14clWY2+G9JPbv8RysPP0eqASBmiEBP0rdE/VkGFgQHaY Xg1NMdKykvhX4ea4rloJilMk3G78eY9NF58PyTJFDBxvjvg63SqUtsQcNwbUgQSppzn7 miki/WfHmdJUa5rousXKYM2bFlPvF/kMDSJ2M=
- Reply-to: pygame-users@xxxxxxxx
- Sender: owner-pygame-users@xxxxxxxx
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