6 def loadWAV(path,library=False):
8 return pygame.mixer.Sound(path)
10 (dir,file) = os.path.split(path)
12 return pygame.mixer.Sound(os.path.join(dir,file.lower()))
17 # Ok, try the system sample library...
18 return loadWAV(os.path.join(config.librarypath,file),True)
21 pygame.mixer.music.load(path)
22 return pygame.mixer.music
26 return pygame.image.load(path).convert()
28 (dir,file) = os.path.split(path)
30 return pygame.image.load(os.path.join(dir,file.lower())).convert()