mirror of
https://github.com/panda3d/panda3d.git
synced 2025-09-28 07:48:37 -04:00
*** empty log message ***
This commit is contained in:
parent
7811638810
commit
311aae0a0e
@ -69,23 +69,14 @@ class Loader:
|
||||
return texture
|
||||
|
||||
# sound loading funcs
|
||||
def loadSample(self, samplePath):
|
||||
def loadSound(self, soundPath):
|
||||
"""loadSample(self, string)
|
||||
Attempt to load a sound from the given file path using
|
||||
Cary's sound class. Returns None if not found"""
|
||||
Loader.notify.info("Loading sound: %s" % (samplePath) )
|
||||
sound = self.__audioPool.loadSample(samplePath)
|
||||
Loader.notify.info("Loading sound: %s" % (soundPath) )
|
||||
sound = self.__audioPool.loadSound(soundPath)
|
||||
return sound
|
||||
|
||||
def loadMusic(self, musicPath):
|
||||
"""loadMusic(self, string)
|
||||
Attempt to load music from the given file path using
|
||||
Cary's sound class. Returns None if not found"""
|
||||
Loader.notify.info("Loading music: %s" % (musicPath) )
|
||||
music = self.__audioPool.loadMusic(musicPath)
|
||||
return music
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user