mirror of
https://github.com/panda3d/panda3d.git
synced 2025-09-28 15:53:55 -04:00
*** empty log message ***
This commit is contained in:
parent
7811638810
commit
311aae0a0e
@ -69,23 +69,14 @@ class Loader:
|
|||||||
return texture
|
return texture
|
||||||
|
|
||||||
# sound loading funcs
|
# sound loading funcs
|
||||||
def loadSample(self, samplePath):
|
def loadSound(self, soundPath):
|
||||||
"""loadSample(self, string)
|
"""loadSample(self, string)
|
||||||
Attempt to load a sound from the given file path using
|
Attempt to load a sound from the given file path using
|
||||||
Cary's sound class. Returns None if not found"""
|
Cary's sound class. Returns None if not found"""
|
||||||
Loader.notify.info("Loading sound: %s" % (samplePath) )
|
Loader.notify.info("Loading sound: %s" % (soundPath) )
|
||||||
sound = self.__audioPool.loadSample(samplePath)
|
sound = self.__audioPool.loadSound(soundPath)
|
||||||
return sound
|
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