mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-02 09:52:27 -04:00
remove audiomgr valid check
This commit is contained in:
parent
bb45e0fbb9
commit
ee5365e11c
@ -561,12 +561,10 @@ class ShowBase:
|
||||
self.notify.debug("Enabling audio")
|
||||
|
||||
def loadSfx(self, name):
|
||||
# showbase's sfxManager should always be at front of list
|
||||
if(not self.sfxManagerIsValidList[0]):
|
||||
# dont print a warning if mgr invalid, since they should already know
|
||||
return None
|
||||
# should return a valid sound obj even if soundMgr is invalid
|
||||
sound = None
|
||||
if (name):
|
||||
# showbase-created sfxManager should always be at front of list
|
||||
sound=self.sfxManagerList[0].getSound(name)
|
||||
if sound == None:
|
||||
self.notify.warning("Could not load sound file %s." % name)
|
||||
@ -574,8 +572,7 @@ class ShowBase:
|
||||
|
||||
|
||||
def loadMusic(self, name):
|
||||
if(not self.musicManagerIsValid):
|
||||
return None
|
||||
# should return a valid sound obj even if musicMgr is invalid
|
||||
sound = None
|
||||
if (name):
|
||||
sound=self.musicManager.getSound(name)
|
||||
|
@ -6,7 +6,7 @@
|
||||
linmath:c putil:c panda:m express:c pandaexpress:m dtoolconfig dtool
|
||||
|
||||
#define SOURCES \
|
||||
showBase.cxx showBase.h mersenne.cxx mersenne.h
|
||||
showBase.cxx showBase.h mersenne.cxx mersenne.h projectionScreen.h projectionScreen.I projectionScreen.cxx
|
||||
|
||||
#define IGATESCAN all
|
||||
#end lib_target
|
||||
|
Loading…
x
Reference in New Issue
Block a user