mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 10:22:45 -04:00
removed restartMusic
This commit is contained in:
parent
4cc5da5af0
commit
65d4692f3a
@ -352,7 +352,7 @@ class ShowBase:
|
||||
sfx.play()
|
||||
|
||||
def playMusic(self, music, looping = 0, interupt = 1, volume = None,
|
||||
restart = None, time = 0.):
|
||||
time = 0.0):
|
||||
if (music and base.wantMusic):
|
||||
if volume != None:
|
||||
music.setVolume(volume)
|
||||
@ -360,18 +360,14 @@ class ShowBase:
|
||||
music.setTime(time)
|
||||
music.setLoop(looping)
|
||||
music.play()
|
||||
if restart:
|
||||
restart[0].accept("restart-music", restart[1])
|
||||
|
||||
def stopSfx(self, sfx):
|
||||
if (sfx and base.wantSfx):
|
||||
sfx.stop()
|
||||
|
||||
def stopMusic(self, music, restart = None):
|
||||
def stopMusic(self, music):
|
||||
if (music and base.wantMusic):
|
||||
music.stop()
|
||||
if restart:
|
||||
restart[0].ignore("restart-music")
|
||||
|
||||
def dataloop(self, state):
|
||||
# traverse the data graph. This reads all the control
|
||||
|
Loading…
x
Reference in New Issue
Block a user