[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[pygame] Using sound with python 2.7 and above
Hi can any one help with this when using python 2.7 and above or 3.X the line
if not pygame.mixer:
print 'Warning, sound disabled'
message gets printed how do i get round this
thanks NuMedia
code below
#------------------------------------------------------------------------------
import pygame
#------------------------------------------------------------------------------
from App_Class import *
#------------------------------------------------------------------------------
def main():
if not pygame.mixer:
print 'Warning, sound disabled'
pygame.init()
app = AppClass ()
app.run ()
#------------------------------------------------------------------------------
#this calls the 'main' function when this script is executed
if __name__ == '__main__': main()
#------------------------------------------------------------------------------
--
View this message in context: http://pygame-users.25799.x6.nabble.com/Using-sound-with-python-2-7-and-above-tp1492.html
Sent from the pygame-users mailing list archive at Nabble.com.