[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[pygame] Strangest thing..
- To: pygame-users@xxxxxxxx
- Subject: [pygame] Strangest thing..
- From: Olof Bjarnason <olof.bjarnason@xxxxxxxxx>
- Date: Sun, 25 Oct 2009 01:00:29 +0200
- Delivered-to: archiver@xxxxxxxx
- Delivered-to: pygame-users-outgoing@xxxxxxxx
- Delivered-to: pygame-users@xxxxxxxx
- Delivery-date: Sat, 24 Oct 2009 19:00:32 -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=4VB/gBrfsS69ickN5Rsh3sgkbpAafeXQACPLjoZPT00=; b=glTbrn9WykvOmEQJ6KY9rH3Oj9C4xz8jB1oDyhadD6/9a7qLKpw5nYvNknBgnC67LF dVd1jMqBFvNvMjfROloX02LV6URBiuLpCfKaQaUBY11qpAMZN2g/AjAsvOWppxHoAM6h gGENEqzQNOIHobjLk/06OSvCUOi2B+5czV42I=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=Q4dXRm2U8vnePFRxW6RFojyE0LNU79uYAb1ifZDMvgM4G5+IMpZDSsj0xBdGIUygZy cv7GdOpYGNXXXNGhY5TMSOtYIwPNCQvCDWq0WmaIcyKkvIU6wA/OckFO/uC9sQpV416z zzNWJD7ZWm11NrKGSEaBqfBQYP95eoMzD+ZcU=
- Reply-to: pygame-users@xxxxxxxx
- Sender: owner-pygame-users@xxxxxxxx
Hi pygame-users!
I'm new to the list, but not to Python/PyGame.
Tonight I tried playing some music, and noticed that my program only
would play sound if I doulble-clicked the .py file in an explorer
window, not if I ran the script from a command prompt. I'm on Vista,
Python 2.6.1 and Pygame downloaded today, the python 2.6-series.
I stripped down the script to a bare minimun to debug it, and the
behaviour still there in this tiny script which only uses the
"enter.wav" sound, built into windows.
####### START tmp.py
import pygame
import os
import sys
pygame.init()
pygame.mixer.init()
print(pygame.mixer.get_init())
print(sys.version)
print(os.getcwd())
pygame.mixer.music.load("enter.wav")
pygame.mixer.music.play()
while True: pass
####### END
I'm kind of lost as to what to do now to try to solve the problem, I'd
really like to know what I'm doing wrong, since I think this program
might be related to a show-stopping issue for me (DLL problems after
doing a py2exe build).
If any one would try and see if the error is still there on their
machines, I would be grateful. The "enter.wav" file should be located
beside the tmp.py script, and could be found using ordinary F3 search
on Windows.
Cya,
/Olof