Hello
I asked this under the resources thread for Pygame so I’m putting it here as well as I need the answer rather urgently as it could wreck my project.
I am developing my latest thang using pygame for sounds. I’m doing this partly because they are supposedly more reliable, but mainly because I want to be able to turn a sound off. Correct me if I’m wrong but in the blender sounds you can not stop a sound once it has started. I want to use 2 - 3 minute wav files that will stop when a player triggers a sensor.
Anyhow, it works fine from Blender. It works fine compiled as an .exe but if I try opening the Blend with BlenderPlayer ( which is my preference as I’m using a Matrox triplehead2go and need to specify 3072x768 screen size) I get no sound and an error
Traceback (most recent call last):
File “initSound”, line 5, in <module>
pygame.error: Couldn’t read from xxx.wav’
The wav file is in the same directory as everything else.
I have tried moving BlenderPlayer into the directory with the game and sounds and still no good:(:(
any ideas?
using xp and 246